Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pls Help :Unable to start Apache

Status
Not open for further replies.

Rami

Technical User
Oct 17, 2000
2
0
0
CA
Hi,

I am a newbie to linux and would appreciate any help.

When I try "httpd start" I get the following error

Syntax error on line 370 of /etc/httpd/conf/httpd.conf:

ScriptAlias takes two arguments, a fakename and a realname.

Please guide me to a resolution.

Thanks

Rami [sig][/sig]
 
I am also getting
syntax error on line 395
Invalid command 'PerlHandler', perhaps mis-spelled or defined by a module not included in the server configuration.

Please help [sig][/sig]
 
Ok you want to look in the httpd.conf file and look for lines that begin with ScriptAlias

For every instance of ScriptAlias there should be 2 arguments after it. like this:

ScriptAlias /cgi-bin/ /home/
If you have a ScriptAlias with more or less than 2 arguments and youre not sure what it's supposed to be for, just comment it out for the time being. You can comment out a line by placing a # in the beginning of the line



Next look for a line that begins with PerlHandler.
Im not familiar with that directive, but it sounds like maybe a non-standard apache directive, instead of AddHandler.
Try commenting that line out and instead add this line:

AddHandler cgi-script .pl .cgi

If you are using Python you probably want to add a .py at the end of that too.

Regards,
Gerald
[sig][/sig]
 
If you're new to Linux, during the setup, you may have set your security level too high and disallowed certain commands. Medium is a good setting for your server (if you are running one). This may be your problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top