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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI is slow?

Status
Not open for further replies.

Patbeau

Programmer
Apr 7, 2003
32
CA
Hi,

A company is hosting a site for me and I decided to bring it back to my business. I installed linux and apache on a server (a better computer +cpu +ram...) but the CGI runs slower. Anyone had an idea what can slow my cgi process?

The cgi script are not complicated. The first one just look into referer and change /fr/ for /en/ so it can switch from french to english.

Thank you
 
Hell0,
Can you let me know how to make CGI scripts run on apache?

In my server instead of getting executed, I am getting the contents of the file.

Itz not running at all.

Can you tell me if I need to change anything in the httpd.conf file for cgi to run?

Karthik.
 
Im new to linux and Im on a pc right now, but, heres how I did it (Im not sure about case of ExecCgi) :

it is in the file httpd.conf. It has a line call addhandler cgi or something like this. Uncomment it.

In the <directory...> add the options ExecCGI
 
Well...I think I am getting closer. Not the final step yet. :)

Well, I did make some changes in the httpd.conf file now:

<Directory /var/Options +ExecCGI
</Directory>

which says that execute all the cgi files.

and:

AddHandler cgi-script .cgi .pl
(to treat all files with .cgi and .pl as executables).

This seems to have helped a bit as when I press the search button I get:

Access Forbidden! You don't have permission to access the required object. How do I make the cgi to execute using apache?.

Any inputs?.


Karthik.
 
Ok, you have to give a file permissions.

use chmod on the filename.cgi to give execute rights.
 
Hell0,
I am kind of new. Can you give me some example?. You meen to say in the terminal window...i must type the commoand?

What permisisons to i set?. chmod 777 filename?

I wanna give permsisions to all .cgi files. Can u give me a small peice of code as example?


Karthik.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top