Fresh Install: 500 Internal Error

duncan

Verified User
Joined
Jan 19, 2005
Messages
94
Location
Halifax, NS, Canada
Hi Everyone,

Just did a fresh install, am trying to run PHP 5 over CGI, with custombuild. All PHP pages are returning a 500 message.

Apache Log says:
No user or group set - set suPHP_UserGroup

Rebooting Apache says (multiple times):
Code:
Warning: SuexecUserGroup directive requires SUEXEC wrapper.

I went through all the hppd.conf files and changed the suPHP_UserGroup to "webapps webapps", but that did not seem to work.

There are some threads in relation to this, but I am having trouble making sense of them, and figuring out what exactly I should do to resolve the problem. I followed these instructions, but without success.

Any ideas?? I feel so close, but so far!

Duncan
 
Remove custom apache templates (/usr/local/directadmin/data/templates/custom) and run "./build rewrite_confs". Make sure you're using the latest version of DA.
 
Hey smtalk,

Thanks! Unfortunately that did not work. I am running the newest version of DA, and after removing the custom files and rebuilding it gives me the following output. Any further ideas or suggestions? I'm stumped!

Code:
[root@vps custombuild]# ./build rewrite_confs
Using 216.187.96.238 for your server IP
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd: Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
Warning: SuexecUserGroup directive requires SUEXEC wrapper.
[Sat Jan 17 09:11:19 2009] [warn] NameVirtualHost 216.187.96.67:80 has no VirtualHosts
[Sat Jan 17 09:11:19 2009] [warn] NameVirtualHost 216.187.96.67:443 has no VirtualHosts


EDIT:
When trying to recompile php I get the following error. Is this likely to be related? And if so, how do I fix it? Thanks!

Code:
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

*** There was an error while trying to configure php. Check the configure/suphp/configure.php5 file
 
Last edited:
I think so. I see this right before the error:

Code:
checking for gcc... gcc


I asked my VPS provider to look into it, and they said:
"As per my best knowledge VPS does not support compiling facility, so you are facing this problem. You can search for RPM and can install php on this."
 
I think so. I see this right before the error:

Code:
checking for gcc... gcc


I asked my VPS provider to look into it, and they said:
"As per my best knowledge VPS does not support compiling facility, so you are facing this problem. You can search for RPM and can install php on this."

I don't know what to say. I have used DirectAdmin on vmware and openvz. Others have used it on XEN. So all 3 of these vps system allow compiling.

I would try installing gcc and gcc-c++ again. If you did not specifically install these then there is a good chance your provider did not either.
 
Last edited:
You're right - I pushed and they said the first person made a mistake and it definitely supports compilers.

Code:
[root@vps ~]# rpm -qa | grep gcc
gcc-c++-4.1.2-42.el5
libgcc-4.1.2-42.el5
gcc-4.1.2-42.el5

I reinstalled gcc and gcc-c++, but the same error remains.

Any other thoughts? Thanks!!

Duncan
 
I would install yum-utils and the use yumdownloader to download gcc and gcc-c++ and then rpm -i --replacefiles --replacepkgs --upgrade gcc* to replace all the associated files for gcc. The error says that gcc is not working for some reason.

That is what I would do if it were me. Something to start with unless somebody else knows what it is.
 
Hi Floyd,

Thanks for the suggestion. I did as you suggest, but unfortunately I am still getting the same error.

Code:
[root@vps ~]# yumdownloader --destdir /usr/src/ gcc gcc-c++ libgcc

[root@vps src]# ll | grep gcc
-rw-r--r-- 1 root root 5471446 Jun 14 2008 gcc-4.1.2-42.el5.i386.rpm
-rw-r--r-- 1 root root 3595167 Jun 14 2008 gcc-c++-4.1.2-42.el5.i386.rpm
-rw-r--r-- 1 root root 95055 Jun 14 2008 libgcc-4.1.2-42.el5.i386.rpm
[root@vps src]#

[root@vps src]# rpm -ivh --replacefiles --replacepkgs --upgrade gcc*
Preparing... ########################################### [100%]
1:gcc ########################################### [ 50%]
2:gcc-c++ ########################################### [100%]
[root@vps src]# rpm -ivh --replacefiles --replacepkgs --upgrade libgcc-4.1.2-42.el5.i386.rpm
Preparing... ########################################### [100%]
1:libgcc ########################################### [100%]
[root@vps src]#


[root@vps src]# rpm -qa | grep gcc
gcc-c++-4.1.2-42.el5
gcc-4.1.2-42.el5
libgcc-4.1.2-42.el5

Do you think based on the C compiling problem, this is likely the cause for my Apache 500 error? I am only guessing that the compiling problem is is directly related - but I am open to suggestions!

Duncan
 
I don't know what to say at this point. Hopefully somebody else knows.
 
Find out exactly what software your provider uses on their VPS systems, and then find a support venue for that software, and ask there.

Unfortunately since the problem is NOT DirectAdmin related, you probably won't get much help here.

:(

Jeff
 
Back
Top