jen_jen_jen
asked on
PHP Warning: Unable to access...
I keep getting this error:
PHP Warning: require_once() [<a href='function.require-onc e'>functio n.require- once</a>]: Unable to access /var/www/vhosts/.../smarty .header.ph p in /var/www/vhosts/..../index .php on line 3
I used chown -R to set the ower / group for all of the files, and they all have -rw-rw-r--
PHP Warning: require_once() [<a href='function.require-onc
I used chown -R to set the ower / group for all of the files, and they all have -rw-rw-r--
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
They should also have x to be run.
PHP Warning: require_once() [<a href='function.require-onc e'>functio n.require- once</a>]: Unable to access /var/www/vhosts/.../smarty .header.ph p in /var/www/vhosts/..../index .php on line 3
Hello,
Your index.php script is trying to require the inclusion of file smarty.header.php. This file either cannot be found or cannot be accessed. The smarty file is partof the smarty templating system.
Check line line 3 of index.php and confirm that the file is where the require_once line says it is, if you are certain that the path is correct, then the permissions could be wrong (execute permission may be needed).
Hello,
Your index.php script is trying to require the inclusion of file smarty.header.php. This file either cannot be found or cannot be accessed. The smarty file is partof the smarty templating system.
Check line line 3 of index.php and confirm that the file is where the require_once line says it is, if you are certain that the path is correct, then the permissions could be wrong (execute permission may be needed).
ASKER
It's still not working...
This is the file
-rw-rw-r-- 1 admin psaserv 581 Aug 7 10:18 smarty.header.php
pwd gives: /var/www/vhosts/.../httpdo cs
This is the directory:
drwxr-xr-x 7 admin psaserv 4096 Aug 7 10:51 httpdocs
I also tried:
-rwxrwxrx- 1 admin psaserv 581 Aug 7 10:18 smarty.header.php
And got the same message.
This is the file
-rw-rw-r-- 1 admin psaserv 581 Aug 7 10:18 smarty.header.php
pwd gives: /var/www/vhosts/.../httpdo
This is the directory:
drwxr-xr-x 7 admin psaserv 4096 Aug 7 10:51 httpdocs
I also tried:
-rwxrwxrx- 1 admin psaserv 581 Aug 7 10:18 smarty.header.php
And got the same message.
Can you please open the index.php file and post line 3 here?