Link to home
Start Free TrialLog in
Avatar of jen_jen_jen
jen_jen_jen

asked on

PHP Warning: Unable to access...

I keep getting this error:

PHP Warning:  require_once() [<a href='function.require-once'>function.require-once</a>]: Unable to access /var/www/vhosts/.../smarty.header.php 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--
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
They should also have x to be run.
PHP Warning:  require_once() [<a href='function.require-once'>function.require-once</a>]: Unable to access /var/www/vhosts/.../smarty.header.php 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).
Avatar of jen_jen_jen
jen_jen_jen

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/.../httpdocs

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?