In Symfony 4, I have one bug when I use:
php bin/console serve:run
[Thu Sep 27 19:11:00 2018] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Thu Sep 27 19:11:00 2018] PHP Fatal error: Unknown: Failed opening required 'C:\Users\user\Documents\Sites\Symfony4\vendor\symfony\web-server-bundle/Resources/router.php' (include_path='.;C:\php\pear') in Unknown on line 0
I use composer install before this command.
I am running Windows 10.
I discovered that Avast quarantined my file. And since I was using it in silent mode, I did not see the notification.
Related
I am working on a laravel 6 api only application so I am testing the endpoints using postman. I am getting this error when I make request to any of the endpoints
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'C:\Elo\apiProject\server.php' (include_path='.;C:\php\pear') in Unknown on line 0
From vscode terminal I can see that the development server starts, accepts then closes as seen below
$ php artisan serve
Laravel development server started: http://127.0.0.1:8000
[Thu Apr 2 21:05:53 2020] PHP 7.4.0 Development Server (http://127.0.0.1:8000) started
[Thu Apr 2 21:05:59 2020] 127.0.0.1:53500 Accepted
[Thu Apr 2 21:05:59 2020] 127.0.0.1:53500 Closing
[Thu Apr 2 21:27:23 2020] 127.0.0.1:53668 Accepted
[Thu Apr 2 21:27:23 2020] 127.0.0.1:53668 Closing
I have no idea why it is closing and no information inside the log file. What could be responsible for throwing such error?
I had the same issue and I think it's related to the port 8000.
Maybe it's already in use or something like this because when I changed the port to 9000 (ie: php artisan server --port=9000) it solved the issue and works just fine now.
I had the same issue.In my case it was when I started to work in the project from another computer and so, I did "git clone".
I solved the problem by creating a ".env" copying the .env.example and then, I executed the command "php artisan key:generate" to generate the new API_KEY, which is mandatory for the start of the server.
Hope it helped you !
I have installed an existing laravel project but when I run "php artisan serve" command it gives me below error.
PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Thu Jul 20 12:07:12 2017] PHP Fatal error: Unknown: Failed opening required '/Users/logicparadisemac/Sites/physicalproduct/server.php' (include_path='.:') in Unknown on line 0
I have some trouble with my PHPMyAdmin on dedicated server.
Directadmin was installed with system CentOS7 by soyoustart.com
Here is line with phpmyadmin error line from apatche error logs:
[Tue Jun 28 10:22:51.938070 2016] [:error] [pid 30558] [client 88.199.88.94:50300] PHP Fatal error: Unknown: Failed opening required '/var/www/html/phpMyAdmin/index.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0, referer: https://xxx.xxx.xx.xx:2222/CMD_DB?domain=xxxxxxx.com
Could someone tell me how to reinstall PHPMyAdmin on CentoOS 7 or how to solve this problem?
Set session.save_path to /tmp in your php.ini file and restart httpd services to fix this issues.
I'm trying to start a PHP server on Mac:
php -S localhost:8000 –t basic/web
But I get the following errors:
[Thu Dec 11 22:35:32 2014] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Thu Dec 11 22:35:32 2014] PHP Fatal error: Unknown: Failed opening required '–t' (include_path='.:') in Unknown on line 0
[Thu Dec 11 22:35:32 2014] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Thu Dec 11 22:35:32 2014] PHP Fatal error: Unknown: Failed opening required '–t' (include_path='.:') in Unknown on line 0
What can I do about it?
I've just installed PHP.
$ php -v
PHP 5.5.7 (cli) (built: Dec 11 2013 20:55:14)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
I created a new directory called test/ with one file called test.php containing this:
<?php echo "hello world";
When I start a php server and try to load it in the browser, I get a "Resource temporarily unavailable" error:
johnny at arch in ~/Projects/test
$ php -S localhost:8080 .
PHP 5.5.7 Development Server started at Sun Jan 5 22:34:01 2014
Listening on http://localhost:8080
Document root is /home/johnny/Projects/test
Press Ctrl-C to quit.
[Sun Jan 5 22:34:18 2014] PHP Warning: Unknown: failed to open stream: Resource temporarily unavailable in Unknown on line 0
[Sun Jan 5 22:34:18 2014] PHP Fatal error: Unknown: Failed opening required '.' (include_path='.:/usr/share/pear') in Unknown on line 0
[Sun Jan 5 22:34:19 2014] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Sun Jan 5 22:34:19 2014] PHP Fatal error: Unknown: Failed opening required '.' (include_path='.:/usr/share/pear') in Unknown on line 0
I have Googled this and all issues I've found are people who are trying to include() another file in some way (using other PHP methods). Haven't found anything similar to what I'm experiencing with just a simple echo statement.
NOTE: I've tried giving full read/write/execute permissions to both the test.php file and the test/ directory; same results.
Ah, don't add the .. The built-in server uses the CWD as document root (or the path specified via the -t flag). You're attempting to use . as a router script. Simply run...
php -S localhost:8080
See http://php.net/manual/features.commandline.webserver.php