View Full Version : Error running /install/
dberube
11-26-2006, 11:33 PM
When I try to access the install directory I get this error:
Fatal error: main() [function.require (http://yutter.com/phpLD/install/function.require)]: Failed opening required 'include/tables.php' (include_path='.::/var/www/vhosts/domain.com/httpdocs/phpLD/') in /var/www/vhosts/domain.com/httpdocs/phpLD/include/config.php on line 35
any help here? I'm running the latest version 3.0.6 (I believe).
I know it says I need to "pay" for support for this version, but I don't think thats necessary when I can't even get the very first thing I need to do on the script running.
Yes I did upload every file, and yes tables.php is in that specified directory and yes I did chmod everything I needed to.
James
11-26-2006, 11:37 PM
make sure that file is uploaded.
dberube
11-26-2006, 11:38 PM
The file is uploaded and in the include/ directory.
dberube
11-26-2006, 11:47 PM
I've searched this forum and there are a few other people who have had this problem, but it doesn't look like it has been resolved, this worries me. Has anyone fixed this?
swalenet
01-30-2007, 02:23 PM
This happened to me not only with phpLD but similar issues with php 5.0.4
On my server you can override PHP settings for a specific domain in the file
httpd.include which is found (on my server) in the conf subdir of the domain root (e.g. /var/www/vhosts/domain.co.uk/conf)
You will find the following:
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/domain.co.uk/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/domain.co.uk/httpdocs:/tmp"
Just remove the
php_admin_value open_basedir "/var/www/vhosts/domain.co.uk/httpdocs:/tmp"
from each if and restart apache.
NOTE THIS WORKS ON MY PLESK 8 dedicated server with php 5.0.4 - IT MAY NOT WORK FOR YOU. Having said that this seems to be an issue with open_basedir and php 5.0.4.
Use with care, the first time I accidentally changed this server wide and brought down all my web mail access!!!!
Steve
blackpepper
01-31-2007, 06:53 AM
I had the same problem before and it was due to php 5 open_basedir restriction as swalenet says, but you can also fix it on domain basis, so you don't have to mess with global httpd file, just add a vhost.conf file with the following content:
In order to loosen the open_dasedir restrictions add following file in /var/www/vhosts/domain.com/conf/vhost.conf :
<Directory /var/www/vhosts/domain.com/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir none
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir none
</IfModule>
</Directory>
then execute the following 2 commands to restart your service:
/usr/local/psa/admin/bin/websrvmng -r
/usr/local/psa/admin/bin/websrvmng -a
Replace domain.com with your OWN DOMAIN!!
Once again, do it with care or if you are not confident or not allowed to create the vhost file then talk to your hosting providers so they do it for you.
blackpepper
amatas
02-02-2007, 01:14 AM
I am having that same problem. Looking at php.net it advises to upgrade to the latest version php 5.2 to overcome a number of bugs in earlier versions, I am guessing that this applies to 5.0.4 (my current version).
I have yet to get how to upgrade solved but am hoping this is the clue.
p.s.
I have now gone through the process advised by Blackpepper. I am at this point
/usr/local/psa/admin/bin/websrvmng -r
/usr/local/psa/admin/bin/websrvmng -a
My screen shows this
Change PropertiesContent visible to registered users only. (javascript:open_details('https://72.22.80.129:8443/vz/cp/tasks_popup','tasks_list_38ec45c2a020t34132687'))A ctive Tasks (javascript:open_details('https://72.22.80.129:8443/vz/cp/tasks_popup','tasks_list_38ec45c2a020t34132687'))C ontent visible to registered users only. (https://72.22.80.129:8443/vz/cp/vps-files)Up Level (https://72.22.80.129:8443/vz/cp/vps-files)
On this screen you can change the properties of websrvmng General InformationNameContent visible to registered users only.*Path/usr/local/psa/admin/binSize0 MB (13,632 bytes) ModifiedFeb 01, 2007 06:38:33 PM PermissionsReadWriteExecuteOwnerContent visible to registered users only.Content visible to registered users only.Content visible to registered users only.GroupContent visible to registered users only.Content visible to registered users only.Content visible to registered users only.OthersContent visible to registered users only.Content visible to registered users only.Content visible to registered users only.OwnershipUseradm alias amatasco apache bin daemon dbus ftp games gopher halt lance14 lp mail mailnull mysql named news nobody nscd ntp operator pcap popa3d popuser psaadm psaftp qmaild qmaill qmailp qmailq qmailr qmails root rpc rpm saltydog shutdown smmsp sshd sync tempaccess uucp vcsa webadmin webalizerGroupadm apache bin daemon dbus dip disk floppy ftp games gopher kmem lock lp mail mailnull man mem mysql named news nobody nofiles nscd ntp pcap popa3d popuser psaadm psacln psaftp psaserv qmail root rpc rpm screen slocate smmsp sshd sys tty users utmp uucp vcsa webadmin webalizer wheel
Can you advise how to initiate the commands?
blackpepper
02-02-2007, 12:03 PM
those two commands should be run on the shell, do you have shell access to your server?
Sorry I didn't specify that on my last post..
Post back if you still have the problem
blackpepper
David
02-02-2007, 03:08 PM
Definitely a job for your host.
James
02-02-2007, 08:07 PM
You can solve this by manually setting the include path also.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.