Current time: 11-22-2024, 10:00 AM Hello There, Guest! (LoginRegister)


Post Reply 
ispCP 1.0.0 update to 1.0.3-1 database update failed
Author Message
zeosunang Offline


Posts: 4
Joined: Jan 2010
Reputation: 0
Post: #1
ispCP 1.0.0 update to 1.0.3-1 database update failed
Hello,

while updating ispCP from version 1.0.0 stable to 1.0.3-1 i encountered several problems. However i was able to solve most of them.
But now update wont continue due to database errors:

Update ispCP database shema: [failed]

printing /tmp/ispcp-update-database.log results in
sh: /usr/bin/php5: file or directory does not exist.

i recently upgraded Debain etch to lenny, but the problem existed before.
while executing "aptitude full-upgrade" my system encounter the following error:

Sub-process /usr/bin/dpkg returned an error code (1)

but i dont know if this has something to do with my ispcp problem.

thanks for help! and sorry for my bad english Smile
01-22-2010 11:19 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: ispCP 1.0.0 update to 1.0.3-1 database update failed
It seems that you're missing the console php version. Try with:
Code:
apt-get install php5-cli
01-22-2010 11:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
zeosunang Offline


Posts: 4
Joined: Jan 2010
Reputation: 0
Post: #3
RE: ispCP 1.0.0 update to 1.0.3-1 database update failed
wow thanks for your fast help! Smile

that solved my problem!
update run trough succesfully.

but now ive got a new error on the administration page:

Warning: session_start() [function.session-start]: open(/var/www/ispcp/gui/phptmp/sess_nRCdp7gWyIXkk,h3vk5YiFT18Ud, O_RDWR) failed: Permission denied (13) in /var/www/ispcp/gui/include/ispcp-lib.php on line 43

seems to be a permission problem, but i dont know how to solve it...
(This post was last modified: 01-23-2010 12:07 AM by zeosunang.)
01-22-2010 11:31 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: ispCP 1.0.0 update to 1.0.3-1 database update failed
If you're using mod_php:
Code:
chown -R vu2000:www-data /var/www/ispcp/gui/phptmp
chmod -R 660 /var/www/ispcp/gui/phptmp
chmod 770 /var/www/ispcp/gui/phptmp

If you're using fastcgi/fcgid:
Code:
/var/www/ispcp/engine/setup/set-gui-permissions.sh
01-23-2010 12:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
zeosunang Offline


Posts: 4
Joined: Jan 2010
Reputation: 0
Post: #5
RE: ispCP 1.0.0 update to 1.0.3-1 database update failed
if im honest, i dont know which i'm using...

if i type the "mod_php" commands, the recent problem is solved, but i get a new error message:

Warning: require_once(/var/www/ispcp/gui/include/ispcp-db-keys.php) [function.require-once]: failed to open stream: Permission denied in /var/www/ispcp/gui/include/ispcp-lib.php on line 67

another permission denied error :O

executing the permissions.sh changes nothing. it reproduces the old error.

at least apache is now responding with an 503 on subdomains.

This is my most annoying webserver update so far :O
(This post was last modified: 01-23-2010 12:37 AM by zeosunang.)
01-23-2010 12:29 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: ispCP 1.0.0 update to 1.0.3-1 database update failed
Basically, using mod_php is not officially supported by ispcp, and hence you get some permission errors when doing it. Now, they can all be easily fixed if you consider that, under mod_php, scripts are run as the "www-data" user instead of "vuXXX".

You can either fix all these permission errors manually or install (and properly setup, look for other threads about it) fastcgi/fcgid.
01-23-2010 01:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
zeosunang Offline


Posts: 4
Joined: Jan 2010
Reputation: 0
Post: #7
RE: ispCP 1.0.0 update to 1.0.3-1 database update failed
while "playing around" with fastcgi and fcgid, apache told me, suexec doesnt work, which seemed to be very important for it to work. Smile

i reinstalled it, and now everything works fine. suEXEC caused the permission denied errors.

thanks for being so patient Smile
01-23-2010 02:24 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)