Problem with suexec. Something wrong with uid?

Jing

Verified User
Joined
Jul 30, 2003
Messages
81
Greetings. I have some problem with suexec that I'm at lost of how to go about it. I tried doing some research online, the solutions mentioned didn't work for me. I suspect that there are some errors with my set up and am hoping that someone here could double check for me. Otherwise I would have to resort to disabling suexec as it's too much headache.

I was trying to load up some cgi script on my new directadmin server, and I received an 500 error. Looking up on suexec.log, this is what I get.

Code:
[2008-10-14 17:17:01]: uid: (1001/[B]abc[/B]) gid: (1006/[B]abc[/B]) cmd: showuser.cgi
[2008-10-14 17:17:01]: cannot get docroot information (/)

The funny thing is, abc is the username of the admin. The account's actual username (say xyz) is not the one shown in the log. I would have expected that the error log to show an error related to xyz instead. To elaborate more on the relationship between abc and xyz, abc is the admin account that created xyz.

Now my question is, is the error message normal? If it is, what can I do about it? If it's not, is there something wrong with my set up? I was updating to Apache 2.2 via custombuild, and all the configurations were pretty original.

Another question is that, is cgi-bin normally chown as user:apache, or user:user? I realize all other files are under user:apache except for cgi-bin, and have been playing around with it hoping to get suexec working without any luck.

Thanks in advance for the help.
 
Just in case anyone else come across this problem, I was stupidly accessing the script via http://ip.add.ress/~user. This is automatically fixed by accessing the script via the user's domain. I couldn't do so because the domain wasn't transferred to the new server and hence was struck with the error.

I suppose that error message showing the admin's userid is mainly due to the admin account owning the ip address that I ran from the script from, although it is shared by the user's domain name as well.

So yea, hope this helps other newbies who might have the same problem.

Cheers.
 
Back
Top