Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st August 2005, 23:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default 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).
Attached Files
File Type: zip test.zip (826 Bytes, 3237 views)
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #2  
Old 26th September 2005, 15:15
dranieri dranieri is offline
Member
 
Join Date: Sep 2005
Location: Pennsylvania
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to dranieri
Default Test Zip

Thank you falko
__________________
Thank You,
David
Reply With Quote
  #3  
Old 19th March 2006, 02:21
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,042
Thanks: 269
Thanked 154 Times in 133 Posts
Default

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.
Reply With Quote
The Following 2 Users Say Thank You to edge For This Useful Post:
bowlAltetle (25th July 2014), XRumerTest (30th October 2014)
  #4  
Old 19th March 2006, 14:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

What's the full path to hello_world.pl?
Which distribution do you use?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 19th March 2006, 16:21
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,042
Thanks: 269
Thanked 154 Times in 133 Posts
Default

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.
Reply With Quote
  #6  
Old 20th March 2006, 13:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 20th March 2006, 15:28
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,042
Thanks: 269
Thanked 154 Times in 133 Posts
Default

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.
Reply With Quote
  #8  
Old 21st March 2006, 00:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

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...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following 2 Users Say Thank You to falko For This Useful Post:
bowlAltetle (21st July 2014), Williamsl (8th July 2014)
  #9  
Old 30th December 2006, 03:26
Blackknight Blackknight is offline
Junior Member
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You should be able to symlink /var/www to /home/www.
Reply With Quote
  #10  
Old 30th December 2006, 13:51
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
 
Question

It wont let me open the zip file, it says "The Compressed (zipped) Folder is invalid or coruppted."
Reply With Quote
The Following User Says Thank You to alexillsley For This Useful Post:
bowlAltetle (25th July 2014)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:24.


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