
1st August 2005, 23:00
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Test Files
Included in this zip are three files for testing Perl, PHP and SSI for a virtual host (please note: the file hello_world.pl must be uploaded to the cgi-bin directory, and you have to make it executable, e.g. chmod 755 hello_world.pl).
|

26th September 2005, 15:15
|
|
Member
|
|
Join Date: Sep 2005
Location: Pennsylvania
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Test Zip
Thank you falko
__________________
Thank You,
David
|

19th March 2006, 02:21
|
|
Moderator
|
|
Join Date: Dec 2005
Location: The Netherlands
Posts: 1,721
Thanks: 148
Thanked 98 Times in 91 Posts
|
|
falko,
As soon as I enable 'Suexec' in ISPconfig, I get a '500 error - Internal Server Error!' when I try to access the 'hello_world.pl' perl script.
When 'Suexec' if off, there is no problem (I guess Suexec is working  )
Anyway.. This is how the dir looks like.
Code:
drwxr-xr-x 2 web22_support web22 4096 Mar 18 02:07 backup
drwxrwxr-x 2 web22_support web22 4096 Mar 19 01:07 cgi-bin
drwxr-xr-x 3 web22_support web22 4096 Mar 11 00:30 log
drwxrwxrwx 2 web22_support web22 4096 Mar 10 23:28 phptmp
drwxr-xr-x 2 web22_support web22 4096 Mar 10 23:28 ssl
drwx------ 2 web22_support web22 4096 Mar 17 11:53 tmp
drwxr-xr-x 3 web22_support web22 4096 Mar 11 09:41 user
drwxrwxr-x 16 web22_support web22 4096 Mar 16 16:23 web
In the cgi-bin (hello_world.pl is chmod to 755)
Code:
-rwxrwxrwx 1 web22_support web22 379 Mar 19 01:07 hello_world.pl
The other two files (info.php and ssi.shtml) work fine... That is... the ssi.shtml file is only showing
Code:
Dynamic HTML with Server Side Includes
Date/Time on the server:
Name of this HTML file:
Installed server software:
Your web browser:
I have no clue why the perl script is not working in 'Suexec' mode.. (map and file is set to the correct user!)
Last edited by edge; 19th March 2006 at 02:30.
|

19th March 2006, 14:30
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
What's the full path to hello_world.pl?
Which distribution do you use?
|

19th March 2006, 16:21
|
|
Moderator
|
|
Join Date: Dec 2005
Location: The Netherlands
Posts: 1,721
Thanks: 148
Thanked 98 Times in 91 Posts
|
|
Quote:
|
Originally Posted by falko
What's the full path to hello_world.pl?
Which distribution do you use?
|
full path to 'hello_world.pl' is: /home/www/web22/cgi-bin
The distribution I'm using is: Fedora RC4
Again.. With 'Suexec' off (in ISPconfig) the hello_world.pl runs fine.
|

20th March 2006, 13:38
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
suExec's document root on FC4 is /var/www. Your script is outside this document root, therefore it doesn't work. Please switch off suExec in ISPConfig.
This is explained in more detail here: http://www.howtoforge.com/perfect_se...dora_core_4_p5
|

20th March 2006, 15:28
|
|
Moderator
|
|
Join Date: Dec 2005
Location: The Netherlands
Posts: 1,721
Thanks: 148
Thanked 98 Times in 91 Posts
|
|
Grrrr and guess what.. I knew that allready!! I have NO CLUE why I did not think about this!
I guess there is no easy way of changin the home directory for websites in ISPconfig. (I allready have a lot of sites setup in the /home/www/ dir)
Once againa.. Thank you falko
Last edited by edge; 20th March 2006 at 15:31.
|

21st March 2006, 00:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
Originally Posted by edge
I guess there is no easy way of changin the home directory for websites in ISPconfig. (I allready have a lot of sites setup in the /home/www/ dir)
|
This would involve a lot of manual work (moving sites, changing paths in a lot of files, etc.), and it's likely that you break something...
|

30th December 2006, 03:26
|
|
Junior Member
|
|
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You should be able to symlink /var/www to /home/www.
|

30th December 2006, 13:51
|
|
Senior Member
|
|
Join Date: Dec 2006
Posts: 399
Thanks: 27
Thanked 3 Times in 3 Posts
|
|
 It wont let me open the zip file, it says "The Compressed (zipped) Folder is invalid or coruppted."
|
| Thread Tools |
|
|
| Display Modes |
Linear 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 09:27.
|
Recent comments
1 day 55 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 13 hours ago