some php problems after update

9 posts / 0 new
Last post
#1 Sat, 07/28/2007 - 08:52
richardhuber

some php problems after update

hi @ all

i updated vmin and webmin via webmintool to the latest version yesterday . now i have a wired problem, all " old" vservers works perfectly, but if i add a new one and try to access a folder in it , i get the following error : "can't apply process slot for xxxx"

if i try to view the website via browser , i get this error : "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 PHP/5.2.0-8+etch7 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) mod_ssl/2.2.3 OpenSSL/0.9.8c Server at test1.clanwelt.net Port 80"

i found some posts in php5 forums , which describe this issue, but none of their solutions works for me .....

maybe someone has an idea, how to fix this

thx in advance for any help

Sat, 07/28/2007 - 18:49
richardhuber

hi @ all again

the problem goes much more deep...... all mails sent to the server are bounced ......:( even from the old domains ...

i cant solve the problem alone ... so every piece of help is welcome ...

greez richard

Mon, 07/30/2007 - 09:20 (Reply to #2)
richardhuber

hi @ all

mail problem got solved by joe , big thx for that :)

the php problem still resists ...
some results from the ls -l :

Debian-40-etch-32-LAMP:/home/test1/public_html/catalog# ls -l
total 524
-rw-r--r-- 1 test1 test1 12039 2007-07-27 10:28 account_edit.php
-rw-r--r-- 1 test1 test1 11563 2007-07-27 10:28 account_history_info.php
-rw-r--r-- 1 test1 test1 7530 2007-07-27 10:28 account_history.php
-rw-r--r-- 1 test1 test1 7188 2007-07-27 10:28 account_newsletters.php
-rw-r--r-- 1 test1 test1 11310 2007-07-27 10:28 account_notifications.php
-rw-r--r-- 1 test1 test1 8224 2007-07-27 10:28 account_password.php
-rw-r--r-- 1 test1 test1 11418 2007-07-27 10:28 account.php
-rw-r--r-- 1 test1 test1 9044 2007-07-27 10:28 address_book.php
-rw-r--r-- 1 test1 test1 18242 2007-07-27 10:28 address_book_process.php
drwxr-xr-x 5 test1 test1 4096 2007-07-27 10:30 admin
-rw-r--r-- 1 test1 test1 10344 2007-07-27 10:30 advanced_search.php
-rw-r--r-- 1 test1 test1 14595 2007-07-27 10:30 advanced_search_result.php
-rw-r--r-- 1 test1 test1 16075 2007-07-27 10:31 checkout_confirmation.php
-rw-r--r-- 1 test1 test1 22052 2007-07-27 10:31 checkout_payment_address.php
-rw-r--r-- 1 test1 test1 17570 2007-07-27 10:31 checkout_payment.php
-rw-r--r-- 1 test1 test1 16334 2007-07-27 10:31 checkout_process.php
-rw-r--r-- 1 test1 test1 22087 2007-07-27 10:31 checkout_shipping_address.php
-rw-r--r-- 1 test1 test1 20323 2007-07-27 10:31 checkout_shipping.php
-rw-r--r-- 1 test1 test1 6883 2007-07-27 10:31 checkout_success.php
-rw-r--r-- 1 test1 test1 3436 2007-07-27 10:31 conditions.php
-rw-r--r-- 1 test1 test1 6413 2007-07-27 10:31 contact_us.php
-rw-r--r-- 1 test1 test1 3779 2007-07-27 10:31 cookie_usage.php
-rw-r--r-- 1 test1 test1 22525 2007-07-27 10:31 create_account.php
-rw-r--r-- 1 test1 test1 3919 2007-07-27 10:31 create_account_success.php
drwxr-xr-x 2 test1 test1 4096 2007-07-27 10:31 download
-rw-r--r-- 1 test1 test1 4229 2007-07-27 10:31 download.php
drwxr-xr-x 3 test1 test1 4096 2007-07-27 10:31 ext
drwxr-xr-x 13 test1 test1 4096 2007-07-27 10:31 images
drwxr-xr-x 8 test1 test1 4096 2007-07-27 10:33 includes
-rw-r--r-- 1 test1 test1 19017 2007-07-27 10:33 index.php
-rw-r--r-- 1 test1 test1 1443 2007-07-27 10:33 info_shopping_cart.php
drwxr-xr-x 6 test1 test1 4096 2007-07-27 10:33 install
-rw-r--r-- 1 test1 test1 10492 2007-07-27 10:33 login.php
-rw-r--r-- 1 test1 test1 3837 2007-07-27 10:33 logoff.php
-rw-r--r-- 1 test1 test1 6313 2007-07-27 10:33 password_forgotten.php
-rw-r--r-- 1 test1 test1 1494 2007-07-27 10:33 popup_image.php
-rw-r--r-- 1 test1 test1 1384 2007-07-27 10:33 popup_search_help.php
-rw-r--r-- 1 test1 test1 3560 2007-07-27 10:33 privacy.php
-rw-r--r-- 1 test1 test1 12873 2007-07-27 10:33 product_info.php
-rw-r--r-- 1 test1 test1 9613 2007-07-27 10:33 product_reviews_info.php
-rw-r--r-- 1 test1 test1 11229 2007-07-27 10:33 product_reviews.php
-rw-r--r-- 1 test1 test1 11228 2007-07-27 10:33 product_reviews_write.php
-rw-r--r-- 1 test1 test1 6938 2007-07-27 10:33 products_new.php
drwxr-xr-x 2 test1 test1 4096 2007-07-27 10:33 pub
-rw-r--r-- 1 test1 test1 3074 2007-07-27 10:33 redirect.php
-rw-r--r-- 1 test1 test1 7494 2007-07-27 10:33 reviews.php
-rw-r--r-- 1 test1 test1 3563 2007-07-27 10:33 shipping.php
-rw-r--r-- 1 test1 test1 11532 2007-07-27 10:33 shopping_cart.php
-rw-r--r-- 1 test1 test1 5711 2007-07-27 10:33 specials.php
-rw-r--r-- 1 test1 test1 3259 2007-07-27 10:33 ssl_check.php
-rw-r--r-- 1 test1 test1 5859 2007-07-27 10:33 stylesheet.css
-rw-r--r-- 1 test1 test1 10202 2007-07-27 10:33 tell_a_friend.php

and the php -l from the installer :

Debian-40-etch-32-LAMP:/home/test1/public_html/catalog/install# php -l install.php
No syntax errors detected in install.php

test with : php5 install.php gives me the source code of the file , php4 install.php results in : command not found

test1 is the server owner , so the permissions should be ok so far, as i think .

if i try to access the page by browser :

http://test1.clanwelt.net i get an "directory of the public folder ( its ok, cuz there is no index )
but if i try to switch to the catalog , i get an error ....
permission for the catalog folder are 750, so everyone should be able, to open it.

weiered thing is , if i install the same software on an " pre-update" vminserver , it works like a charme ....

greez from switzerland :)

Mon, 07/30/2007 - 09:47 (Reply to #3)
richardhuber

`follow up about suexec.log

suexec tells me, that php4.fcgi is not in the docroot ...
but its there

uid: (1031/test1) gid: (1011/1011) cmd: php4.fcgi
command not in docroot (/home/test1/fcgi-bin/php4.fcgi)

in this folder are php4.fcgi anjd php5.fcgi

maybe someone know, what to do now ...

Mon, 07/30/2007 - 10:17 (Reply to #4)
richardhuber

ok , i checked the suexec....

Debian-40-etch-32-LAMP:/usr/lib/apache2# ./suexec -V
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www-data"
-D AP_LOG_EXEC="/var/log/apache2/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"

maybe there is a missconfiguration, id dont see ...:(

Mon, 07/30/2007 - 22:29 (Reply to #5)
Joe
Joe's picture

I see it. ;-)

-D AP_DOC_ROOT="/var/www"

Your docroot should be /home. This is the wrong Apache. I'm not sure what's up with that...our Apache should have replaced yours.

What happens when you do:

apt-get install apache2

?

I think we can force our apache2 package with:

apt-get -t virtualmin apache2

I think that's the right option...

--

Check out the forum guidelines!

Tue, 07/31/2007 - 12:21 (Reply to #6)
richardhuber

apt-get -t virtualmin apache2 ????

invalid operation apache2

......

is it ok, to reinstall ( apt-get install apache2 ) on a live system ??

Sun, 07/29/2007 - 10:56
mike

have you tried downgrading from the most recent version of php5 to the most recent version of php4? I personally find that php4 is extremely stable and I have not come across any problems with it, the last time I tried php5 it was incompatible with all the forum boards available.... anyways, give the downgrade a try, its not like there is much of a functionality loss, you might have to reconfigure a couple things but thats what i would do.

Sun, 07/29/2007 - 21:29 (Reply to #8)
Joe
Joe's picture

I've seen more of the errors now via email, and it looks like permission problems. Permissions on scripts run under suexec MUST NOT be write enabled for group or other. Any permissions looser than 755 are not going to work, and anything greate than 750 is probably still a mistake (though it'll run under suexec as long as it isn't writeable by group or other).

We'll know more after the follow up from richard.

I'll also point out that there are some docs about troubleshooting these kinds of problems here:

http://www.virtualmin.com/documentation/id,troubleshooting_common_problems/

--

Check out the forum guidelines!

Topic locked