just moved laravel over to my live site and hit errors straight away.
The errors are:
Warning: require(/var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required '/var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/sites/b/beta.buildsanctuary.com/public_html/local/bootstrap/autoload.php on line 17
Im not sure whats causing the issues, is it that its looking in the public_html folder for the files? when it should be just looking in the subdomains / the subdomain itself?
If that is the case... then how can i go about fixing this? if i change line 17 it changes the require location but not where its looking for the file (No such file or director in bla..)
The line 17 in question is:
require __DIR__.'/../vendor/autoload.php';
Related
i moved my website from a subdomain which was made in opencart to a domain by moving the files and exporting and importing the database, and changing the config.php file but i got this errors:
Warning: require_once(/home/inti/public_html/system/startup.php): failed to open stream: Permission denied in /home/smartmobile/public_html/index.php on line 17
Fatal error: require_once(): Failed opening required '/home/inti/public_html/system/startup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/smartmobile/public_html/index.php on line 17
This is most of times folder permission issue or the path set in config files is not valid.
You can get the path by
echo getcwd();
And use this path in config files.
Permissions can be checked and changed via many methods depending upon your access to server.
So, I've searched the whole internet for this error, yet, i'm the only one who have this error,
when i upload the script to http://exampe.com/folderand view check.php , i get no errors at all and it runs perfectly
but the customer doesn't want it in a sub-folder , And here comes the problem, when i upload the script to /public and run check.php i get
Warning: include_once(/srv/users//apps/quizyask/public/../RequirementsChecker.php): failed to open stream: No such file or directory in /srv/users//apps/example/public/check.php on line 12
Warning: include_once(): Failed opening '/srv/users//apps/example/public/../RequirementsChecker.php' for inclusion (include_path='.:/opt/sp/php7.2/lib/php') in /srv/users//apps/example/public/check.php on line 12
any help ?
Public may be the document root of your server. Try not including /public/ in your file path when including it. This generic warning is extremely common and is often caused by typos or incorrect urls.
If this doesn't solve the problem, please let us know how you're including the file so we can further help!
I am running xampp, and I want to have multiple websites in the htdocs folder. When I just install Wordpress into the htdocs folder, it works fine. However, when I clone (from github) a pre-existing build of wordpress and place it into the htdocs folder (ex - htdocs/somesite.com) I cannot access it.
I get an error of:
Warning: require(C:\xampp\htdocs\mysite.com/wp-includes/load.php):
failed to open stream: No such file or directory in
C:\xampp\htdocs\mysite.com\wp-settings.php on line 21
Fatal error: require(): Failed opening required
'C:\xampp\htdocs\mysite.com/wp-includes/load.php'
(include_path='C:\xampp\php\PEAR') in
C:\xampp\htdocs\mysite.com\wp-settings.php on line 21
I am confused on two things:
I see the file there that is SAYS is missing in the directory. This I have triple and quadruple checked. I also do not understand the reference to the c:\xampp\php\PEAR path
I also do not know whether or not there are problems coming from the fact that the slashes between directories changing direction are causing the problem. Like why are they starting off with the "\" but then going to "/" after the "mysite.com".
This is the second time I have run into this problem. What am I doing wrong?
I just upgraded Plesk to the latest version and it has caused many of my sites to go down.
The websites all rely on a file which is located on another domain on my server so they all host an index file which contains an include like this:
include('/var/www/vhosts/assets-domain.co.uk/httpdocs/websites/index.php');
I am getting the following error when viewing the website:
Warning: include(/var/www/vhosts/assets-domain.co.uk/httpdocs/websites/index.php): failed to open stream: Permission denied in /var/www/vhosts/this-domain.co.uk/httpdocs/index.php on line 3 Warning: include(): Failed opening '/var/www/vhosts/assets-domain.co.uk/httpdocs/websites/index.php' for inclusion (include_path='.:') in /var/www/vhosts/this-domain.co.uk/httpdocs/index.php on line 3
So there is obviously a permissions problem of some sort but I have no idea where to start.
In SSH I have tried changing the ownership of the folder '/var/www/vhosts/assets-domain.co.uk/httpdocs/websites/' with no luck. I have noticed that all my domains have different ownership usernames now - would this affect it? EG.mydomain.com has the user of mydomain, cooldomain.com has the user of cooldomain - would this be why they can't access each others files?
Please help as I have 15+ websites down :-(
Fixed this - Plesk decided to change the permissions so simply changing the domain name folder to 755 solved this
Hi I have this database_setup script witten in php. I have a project in a Linux debian machine. The top of the file looks like this:
database_setup.php
require_once("../classes/admin.php");
require_once("../classes/client.php");
require_once("../classes/database.php");
require_once("./config.php");
But when I run php database_setup.php I get the following error:
PHP Warning: require_once(../classes/admin.php): failed to open stream:
No such file or directory in /path/to/the/file/database_setup.php on line 6
PHP Fatal error: require_once():
Failed opening required '../classes/admin.php'
(include_path='.:/usr/share/php:/usr/share/pear')
in /path/to/the/file/database_setup.php on line 6
When I run other code as usual with "normal" contact with the database (I mean the normal case being one where the files of models (as client and admin ) are in the same directory as the database) there is no fatal error or warning.
The config.php file contains the password and name of the db, and so on, which the database.php requires(_once). And the database_setup is in the same folder as the config file.
I really don't understand why the code works on my MAMP server on my mac but not on another system. Has it to do with apache2.conf or something else? Thanks.
I think that this
require_once("../classes/admin.php");
Will be relative to where you are running the php command from.
Try changing directory to the folder above classes and then running php database_setup.php
You can change directory via the command line like this
cd /var/www/httpdocs/classes