Gossamer Forum
Home : General : Internet Technologies :

httpd.conf ... wont run perl?

Quote Reply
httpd.conf ... wont run perl?
Hi guys,

I'm just trying to setup a new domain, with perl script access on one of my server.

I currently have;

Code:
<VirtualHost 123.123.123.123:80>
DocumentRoot "/home/anewby/web/sites/www.academic.com"
ServerName www.academic.com

DirectoryIndex index.html index.php index.htm index.shtml index.php4 index.php3 index.phtml index.cgi

CustomLog /home/cdelingp/web/admin/logs/traffic/log.www.academic.com.txt "combined"
ErrorLog /home/cdelingp/web/admin/logs/errors/error.www.academic.com.error

</VirtualHost>

123.123.123.123 is replaced with my real IP address, and the same fior www.academic.com, which is replaced with the real domain.

The actual site works (at basic root level, with an index.html file). However, as soon as I try to run http://www.domain.com/install.cgi, it screws up.

I know that it *should* work, as we have a couple of other sites running on the same server, so it shouldn't hopefully just be a silly configuration error by me :(

TIA for any suggestions/help.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] httpd.conf ... wont run perl? In reply to
Ok, the error log is showing;

Quote:
[Wed Jan 26 13:52:10 2005] [error] [client 81.153.52.33] (2)No such file or directory: exec of '/home/anewby/web/sites/www.academic.com/install.cgi' failed
[Wed Jan 26 13:52:10 2005] [error] [client 81.153.52.33] Premature end of script headers: install.cgi

Mmmm Unsure

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] httpd.conf ... wont run perl? In reply to
Ok, freeky! It works when you add -w to the shebang ... but why? :|

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] httpd.conf ... wont run perl? In reply to
Two words: windows linefeeds

Adrian
Quote Reply
Re: [brewt] httpd.conf ... wont run perl? In reply to
Ah... that would explain it <G>

Thanks!

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!