I am attempting to install the symfony php framework on windows
i have ran the command
c:\>php -r "readfile('http://symfony.com/installer');" > symfony
and copied the file to my projects directory
copy symfony c:\developmentStack\www\knoxville_programmers
and yet upon executing the installation file
c:\developmentStack\www\knoxville_programmers> php symfony
i receive the following error message
Warning: readfile(http://symfony.com/installer): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in Command line code on line 1
anyone know a solution to this i have searched sensio labs dry looking for community help and it doesn't seem many others have had the problem
Related
I would really appreciate any help on this, i have installed Laravel Valet on Mac but when i have ran php artisan serve, and gone to the web to access my new project (I have not even started coding yet) I am getting the following error:
UnexpectedValueException The stream or file
"/Users/kerrymckinney/Desktop/website/storage/logs/laravel.log" could
not be opened: failed to open stream: Permission denied
Thanks in advance.
I'm developping an app under windows 10 + wamp + php 7 + Symfony 3.3
I'm trying to use the built-in server :
php bin/console server:run
[OK] Server listening on http://127.0.0.1:8000
// Quit the server with CONTROL-C.
And when I go to http://localhost:8000/app_dev.php/ or http://127.0.0.1:8000/app_dev.php
I get this error :
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'C:\wamp\www\myproject\vendor\symfony\symfony\src\Symfony\Bundle\WebServerBundle/Resources/router.php' (include_path='.;C:\php\pear') in Unknown on line 0
Same error under every routes. My routes are correct and works fine outside of the built-in server...
Can you help me with this issue please ?
I had same problem,
Solved by :
Delete symfony folder in vendor
composer update
If you have antivirus (like Avast) disable it before launching web
server
php bin/console server:run
I got the same error, even when installing via composer.
It turns out that for whatever reason when composer downloaded the project, the required file listed in the error you get (vendor\symfony\symfony\src\Symfony\Bundle\WebServerBundle/Resources/router.php) was not included...
To fix this, I manually added it from https://github.com/symfony/web-server-bundle/blob/master/Resources/router.php and then my symfony app worked as expected.
I had to restart my computer in order to actually add the file because somehow I was locked out of adding it even as admin in Windows after launching the php server.
UPDATE:
Even better than manually adding the file, I just deleted the symfony folder from the vendor folder in the project and reran composer update. the router.php file is indeed downloaded. Sometimes when running bin/console server:run it gets deleted. Not sure why.
It happened to me when upgrading from Symfony 3.1 to Symfony 3.4.
The reason was that I had left the development server running when I executed the command:
composer update
The solution:
Delete the contents of vendor folder
Execute composer update
Install the new Symfony development server bundle (follow the instructions)
Execute the server for development in a new port
php bin/console server:start localhost:3421
I had this problem too : it was AVAST that blocked the "router.php" file.
I went into avast -> protection -> quarantine, and put an exception of the router.php file
And then everything worked again
I get the same error and I solve this issue by installing the project with composer
composer create-project symfony/framework-standard-edition my_project_name
I am new in Laravel and I have the following problem.
I developed a Laravel 5 project on an old computer, and I put the code on a GIT repository. I retrieved my source code on my new laptop from the repository.
But I am facing problems while running the Laravel project on Apache and I am obtaining this error message on my Laravel website instead:
Warning: require(C:\xampp\htdocs\HotelRegistration\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\HotelRegistration\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\HotelRegistration\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\HotelRegistration\bootstrap\autoload.php on line 17
The C:\xampp\htdocs\HotelRegistration\bootstrap\autoload.php is present in my project
Why am I facing this issue? What is the problem? What am I missing? How can I fix this issue? How can I try to solve this issue?
You need to run
composer install
command to install packages. By default vendor directory is ignored when committing to GIT (this is good) so if you pull data from repository you need to install all packages running above command.
I'm learning PHP and wanted to work with Laravel, by doing so i follow tutorials and the guy explaining it uses artisan commands.
However I looked it up on how to add such commands but every time i go to command line tool support it gives me this error
Problem
Failed to parse output as xml: Error on line 2: Content is not allowed in prolog..
Command
php.exe D:\Websites\untitled\artisan list --format=xml
Output
Warning: require(D:\Websites\untitled\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\Websites\untitled\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'D:\Websites\untitled\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\Websites\untitled\bootstrap\autoload.php on line 17
So i removed that project and installed Laravel again using "composer project"
and trying to add the artisan again doesn't work again with this fresh start.
Am I missing something? Or did I forgot something to do?
I hope someone can help me since I'm still a beginner and this would be a good learning school
Greetings
Ditger
Run composer install before using php artisan:
composer install
I am trying to get familiar with testing (unit, functional) under Symfony 2.3.24/Windows7/PHP 5.4.7.
It seems PHPUnit is installed correctly (via Composer), but when I run a phpunit -c app/ command I get the following error:
Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in C:\xampp\php\phpunit on line 38
Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\php\phpunit on line 38
I googled for the issue to no avail. I additionnaly found in the official PHPUnit website that The code coverage report feature requires the Xdebug (2.1.3 or later) and tokenizer extensions.
What do you think about all this? your help is much appreciated.
In current versions of PHPUnit the phpunit script does not include PHP/CodeCoverage/Filter.php directly. It appears you are using an outdated version of PHPUnit and/or have a mixup of Composer/PEAR installations.
Please follow the instructions on https://phpunit.de/getting-started.html to properly install PHPUnit. And http://thephp.cc/news/2015/01/phpunit-migration-from-pear-to-phar explains how to migrate from a PEAR-based installation to Composer or PHAR.