HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Suexec Problems (http://www.howtoforge.com/forums/showthread.php?t=4039)

mphayesuk 3rd May 2006 12:18

Suexec Problems
 
I am on suse10 64bit and when installing ispconfig used /srv/www I am trying to use the test files all of them work except for the hello_world.pl one. I have set the file to chmod 777 and still no joy, if I turn off the suexec it works.

any ideas.

mphayesuk 3rd May 2006 12:19

Putty
 
also a quick note if I try and use putty it attempts to make the connection and then lets me log in, but before I get a command prompt my server closes the connection.

Any ideas.

falko 3rd May 2006 14:59

Quote:

Originally Posted by mphayesuk
I am on suse10 64bit and when installing ispconfig used /srv/www I am trying to use the test files all of them work except for the hello_world.pl one. I have set the file to chmod 777 and still no joy, if I turn off the suexec it works.

any ideas.

Who is the owner and group of that web site? The Perl file must belong to this owner and group with suExec.

Quote:

also a quick note if I try and use putty it attempts to make the connection and then lets me log in, but before I get a command prompt my server closes the connection.
Did you enable Shell access for the web and the user?

mphayesuk 3rd May 2006 15:05

1) How do I check who is the owner and group
2) How would I change it if its wrong

3) I tried to login as root using putty... I think I need to enable shell access for root at some point or perhaps create a different system user.

Thanks

falko 3rd May 2006 16:02

Quote:

Originally Posted by mphayesuk
1) How do I check who is the owner and group

Code:

ls -l /path/to/file
Quote:

2) How would I change it if its wrong
Code:

chown owner:group /path/to/file
Quote:

3) I tried to login as root using putty... I think I need to enable shell access for root at some point or perhaps create a different system user.
Normally root has shell access unless you changed something in /etc/passwd...

mphayesuk 3rd May 2006 16:58

So I am not understanding how it is supposed to work, if I create a new site and login and upload perl scripts they are not going to work, so is there something else I am going to have to do.

Do I need to create owners and groups.

I am just not understanding this bit... can someone explain it.

Thanks

mphayesuk 3rd May 2006 22:07

Ok when I do ls -l on the .pl file this is what I get

server1:~ # ls -l /srv/www/web1/cgi-bin/hello_world.pl
-rwxrwxrwx 1 web1-user1 web1 379 May 3 11:02 /srv/www/web1/cgi-bin/hello_world.pl
server1:~ #

Which as far as I can tell is right so what do I try next....

Thanks

mphayesuk 3rd May 2006 22:13

What group members should my groups have i.e. group web1 should be a member of "admispconfig", "web1-user1" should there be any others like "postfix","root","wwwrun" ect...

falko 3rd May 2006 22:36

Is it web1-user1 or web1_user1? Is this user the site admin?
Can you post the vhost configuration for this web site from Vhosts_ispconfig.conf?

mphayesuk 4th May 2006 10:31

It is web1-user1 I change the prefix. I will post the contents of vhosts shortly.


All times are GMT +2. The time now is 05:30.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.