Updated DA now all webpages give error

wildun

Verified User
Joined
Feb 2, 2006
Messages
53
Hi,
I ran updates on DA yesterday and afterwards all websites give a internal server error 500. Haven't found anything online that addresses the issue.

OS Centos 5
DA Error log shows this

009:05:04-11:01:02: Socket write error: Unknown error
2009:05:04-11:01:33: Socket write error: Unknown error
2009:05:04-11:01:33: Socket write error: Unknown error
2009:05:04-11:01:34: Socket write error: Unknown error
2009:05:05-10:06:36: Error reading from 68.191.124.58:
2009:05:05-10:06:41: Socket write error: Unknown error
2009:05:05-10:06:41: Socket write error: Unknown error
2009:05:05-10:58:14: Socket write error: Unknown error
2009:05:05-16:59:08: Socket write error: Unknown error

Apache error log shows this

at May 09 11:00:28 2009] [warn] Init: SSL server IP/port conflict: www.amazinggracebaptist.us:443 (/usr/local/directadmin/data/users/amazin/httpd.conf:43) vs. www.v103.net:443 (/usr/local/directadmin/data/users/sirg24/httpd.conf:43)
[Sat May 09 11:00:28 2009] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.v103.net:443 (/usr/local/directadmin/data/users/sirg24/httpd.conf:43)
[Sat May 09 11:00:28 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sat May 09 11:00:28 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

Everything was fine prior to updating DA. Any suggestions?
Thanks,
Paul
 
This seems to have something to do with suphp. I rebuilt php and suphp and now httpd will not start. Get this
Starting httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
 
Wishing I had'nt updated. Following everything I could find to no avail. I even tried building all d. Nothing seems to get rid of the group error.
 
Make sure you have no custom apache templates. Try:
Code:
mv /usr/local/directadmin/data/templates/custom /usr/local/directadmin/data/templates/custom_back
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
/etc/init.d/httpd restart
 
Get the same results. Starting httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
 
Using that it returned this
Syntax error on line 33 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
 
Ok followed those directions and got this after rebooting
Starting httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
I ran this

cd /usr/local/directadmin/custombuild
./build rewrite_confs

Same error ..

thanks
 
running this perl -pi -e 's/suPHP_UserGroup/#suPHP_UserGroup/' /etc/httpd/conf/httpd.conf

and restarting httpd renders this

Stopping httpd: [FAILED]
Starting httpd: [Sun May 10 15:26:27 2009] [error] (EAI 2)Name or service not known: Could not resolve host name #68.115.169.10 -- ignoring!
[Sun May 10 15:26:27 2009] [error] (EAI 2)Name or service not known: Could not resolve host name #68.115.169.10 -- ignoring!
Syntax error on line 33 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
 
I think you have missed this part (do that now):
Code:
cd /usr/local/directadmin/data/templates/custom
cp -f ../virtual_host* .
perl -pi -e 's/suPHP_UserGroup/#suPHP_UserGroup/' virtual_host*.conf
perl -pi -e 's/suPHP_UserGroup/#suPHP_UserGroup/' /etc/httpd/conf/httpd.conf
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
/etc/init.d/httpd restart
 
Output from the above

[root@server custom]# cd /usr/local/directadmin/data/templates/custom
[root@server custom]# cp -f ../virtual_host* .
cp: overwrite `./virtual_host2.conf'? y
cp: overwrite `./virtual_host2_secure.conf'? y
cp: overwrite `./virtual_host2_secure_sub.conf'? y
cp: overwrite `./virtual_host2_sub.conf'? y
cp: overwrite `./virtual_host.conf'? y
cp: overwrite `./virtual_host_secure.conf'? y
cp: overwrite `./virtual_host_secure_sub.conf'? y
cp: overwrite `./virtual_host_sub.conf'? y[

root@server custom]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Sun May 10 16:01:21 2009] [error] (EAI 2)Name or service not known: Could not resolve host name #68.115.169.10 -- ignoring!
[Sun May 10 16:01:21 2009] [error] (EAI 2)Name or service not known: Could not resolve host name #68.115.169.10 -- ignoring!
Syntax error on line 63 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
 
Are you sure the following commands were executed?
Code:
perl -pi -e 's/suPHP_UserGroup/#suPHP_UserGroup/' virtual_host*.conf
perl -pi -e 's/suPHP_UserGroup/#suPHP_UserGroup/' /etc/httpd/conf/httpd.conf
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
 
OK.. Did it over and now have httpd .. thanks for that. Problem now is websites giving 500 internal server error. That was the original problem after I updated.
 
Last edited:
I'm seeing in suphp log warnings that some directorys and index.php files for domains are writable for group. I thought when I ran the build secure that it changed those?

I tried setting permissions through the DA file manager but still getting the 500 error.
 
Last edited:
You cannot have chmod >755 for files and directories if you are using suPHP.
 
Ouch .. What of scripts require the chmod 755 to run? Maybe I messed up using suphp. Man, all wanted to do was upate DA. What should the chmod be?

I got the sites wotking now.. again, thanks for your help smtalk
 
Last edited:
Back
Top