
3rd May 2006, 12:18
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
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.
|

3rd May 2006, 12:19
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
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.
|

3rd May 2006, 14:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
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?
|

3rd May 2006, 15:05
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
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
|

3rd May 2006, 16:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
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...
|

3rd May 2006, 16:58
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
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
|

3rd May 2006, 22:07
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
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
|

3rd May 2006, 22:13
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
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...
|

3rd May 2006, 22:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
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?
|

4th May 2006, 10:31
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
It is web1-user1 I change the prefix. I will post the contents of vhosts shortly.
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:35.
|
|
Recent comments
5 hours 24 min ago
10 hours 17 min ago
19 hours 9 min ago
20 hours 9 min ago
23 hours 56 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 12 hours ago
1 day 20 hours ago
1 day 22 hours ago