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)
-   -   Test Files (http://www.howtoforge.com/forums/showthread.php?t=171)

falko 1st August 2005 22:00

Test Files
 
1 Attachment(s)
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).

dranieri 26th September 2005 14:15

Test Zip
 
Thank you falko

edge 19th March 2006 01:21

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 :p )

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!)

falko 19th March 2006 13:30

What's the full path to hello_world.pl?
Which distribution do you use?

edge 19th March 2006 15:21

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.

falko 20th March 2006 12:38

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

edge 20th March 2006 14:28

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

falko 20th March 2006 23:36

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...

Blackknight 30th December 2006 02:26

You should be able to symlink /var/www to /home/www.

alexillsley 30th December 2006 12:51

:confused: It wont let me open the zip file, it says "The Compressed (zipped) Folder is invalid or coruppted." :confused:


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

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