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
Related
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.
I am creating an Wordpress app server on apache and I am getting an error 500 while going to the url.So, I did check the httpd/logs/error_log and the following is the error
[Sun Jan 15 22:42:54.440349 2017] [:error] [pid 767] [client
10.203.116.148:9173] PHP Warning: require_once(/var/www/html/wp-config.php): failed to open stream:
Permission denied in /var/www/html/wp-load.php on line 37 [Sun Jan 15
22:42:54.440406 2017] [:error] [pid 767] [client 10.203.116.148:9173]
PHP Fatal error: require_once(): Failed opening required
'/var/www/html/wp-config.php'
(include_path='.:/usr/share/pear:/usr/share/php') in
/var/www/html/wp-load.php on line 37
I tried changing the file permissions for Wp-config.php but no luck, is there anything else I could do.
Try changing file permissions of wp-config.php it might be given 640. Change file permission of wp-config.php or .htaccess file to 644.
Changing file permission of wp-config.php to 644 worked for me
This error comes most of the time after migration, So the solution is to change the permission of wp-config.php to 644. You can easily change permissions from FileZilla
cheek the path on wp-load.php or post it here
.
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 copy a test.php from a folder and here is it's permission:
-rw-r--r--. 1 root root 20 Jan 12 19:01 test.php
I try to run this script and it says:
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/test/test.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
Then i delete this file and create a new one by vim test.php,and here is it's permission:
-rw-r--r--. 1 root root 20 Jan 12 19:01 test.php
again, i run this file and it works!
anyone knows why?
We are getting sporadic errors HTTP Request Failed in the Apache Error log but without a further reason.
The requested URL is on the local server.
I made some tests with a wrong URL and host but this leads to other errors for example
failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known.
In the apache error.log:
[DATE] [error] [client XXX.XXX.XXX.XXX] PHP Warning: SoapServer::SoapServer(http://example.com/index.php/api/v2_soap/index/wsdl/1/): failed to open stream: HTTP request failed! in /var/www/lib/Zend/Soap/Server.php on line 762
[DATE] [error] [client XXX.XXX.XXX.XXX] PHP Warning: SoapServer::SoapServer(): I/O warning : failed to load external entity "http://example.com/index.php/api/v2_soap/index/wsdl/1/" in /var/www/live/lib/Zend/Soap/Server.php on line 762
I checked our Apache error log for the SOAP URL that is being called and the return code is "200".
So what can be the reason for this error?