Computer Geeks

Computer Geeks

Geek Shop

Geek News

Geek Stuff

Science Geek

Computer Gaming

Linux Chat

Building Websites

Computer Forums

Computer Help Forum

Computer Hardware Forum

Computer Software Programs


Go Back   Computer Forums > Building Websites

Building Websites This section covers all aspects of publishing, developing and maintaining websites. Topics include: website design, graphic design, website programming, web hosting, website marketing (SEO, link exchange, publicity, advertising), monetization & etc.

Computer Geeks
» Active Discussions
Computer Geeks
No Threads to Display.
» Other Websites
- Software Publishing

- Server Hardening
Reply
 
Thread Tools Display Modes
  #21  
Old 04-06-2006, 05:22 PM
Soulwatcher's Avatar
Soulwatcher Soulwatcher is offline
Senior Member
GB GEEK
 
Join Date: Feb 2006
Posts: 309
Send a message via MSN to Soulwatcher
Default

Quote:
Originally Posted by MMeffert
OK I have never used cgi before so I need alot of help.
I have no idea on how your server is setup. So I don't even know where to begin. But for sure your going to have to run the program out of your cgi folder. And your going to have to enable cgi permissions in Apache.
Reply With Quote
  #22  
Old 04-06-2006, 09:33 PM
MMeffert's Avatar
MMeffert MMeffert is offline
Member
GB Advanced User
 
Join Date: Mar 2006
Posts: 80
Default

Ok I will look more into getting cgi setup on my server when I get home on saturday and I will ask if I have an questions.
Reply With Quote
  #23  
Old 04-12-2006, 04:05 PM
MMeffert's Avatar
MMeffert MMeffert is offline
Member
GB Advanced User
 
Join Date: Mar 2006
Posts: 80
Default

OK I have tried and I can not find any kind of anything to install cgi and set it up. I have never used cgi before but I think you need like a cgi-bin and then all cgi files have to be in there.
Reply With Quote
  #24  
Old 04-12-2006, 09:17 PM
Soulwatcher's Avatar
Soulwatcher Soulwatcher is offline
Senior Member
GB GEEK
 
Join Date: Feb 2006
Posts: 309
Send a message via MSN to Soulwatcher
Default

Quote:
Originally Posted by MMeffert
OK I have tried and I can not find any kind of anything to install cgi and set it up. I have never used cgi before but I think you need like a cgi-bin and then all cgi files have to be in there.
You are right you have to have a cgi-bin to execute the cgi files. You also have to set up cgi in apache. More than likely your cgi-bin is located at /var/www/cgi-bin. I know you don't like control panels but if you had webmin and virtualmin you could set this up with the snap of your fingers. But I am sure I can help you get it set up with out the control panel.
Reply With Quote
  #25  
Old 04-13-2006, 04:58 AM
QBall15j's Avatar
QBall15j QBall15j is offline
Super Moderator
GB Advanced User
 
Join Date: Feb 2006
Posts: 98
Default

I just enabled it on my server yesterday, wasn't as bad as I thought...

Make sure you have in your httpd config;
LoadModule cgi_module modules/mod_cgi.so

Uncomment;
AddHandler cgi-script .cgi

Down in your <Directory /home/*/public_html> section add below to the Options line;
ExecCGI

That should be it, you will be allowed to execute Perl scripts from anywhere.
Reply With Quote
  #26  
Old 04-13-2006, 06:02 AM
MMeffert's Avatar
MMeffert MMeffert is offline
Member
GB Advanced User
 
Join Date: Mar 2006
Posts: 80
Default

Ok I think I set it up right but when I go to this address I get a page saying page can not be displayed. Do I have to change anything in the file?

http://mitchellmeffert.com/cgi-bin/nph-proxy.cgi


Do I need anything else installed like mod_perl?
Reply With Quote
  #27  
Old 04-13-2006, 02:21 PM
Coop Coop is offline
Member
GB Beginner
 
Join Date: Apr 2006
Posts: 34
Default

To get an idea of the problem, login to your server using ssh, and run the command :-

tail -f /var/log/httpd/error_log

If your server is setup with the defaults, that should be the location of your error log file. Then go to the URL you have problems with, and see what gets printed on the screen. It will usually give you an idea of what the problem is. Depending on how you have cgi setup, you may need to enable mod_perl, but be warned, it is not possible to run mod_perl and mod_php in the same instance of apache. If you need to run both, then the normal practice is to add a line :-

#! /bin/perl

to the start of your script, and to make the file executable by world. This can be done with a :-

chmod 0755 file.cgi

from the ssh prompt, assumiong you are already in the directory containing the file. Having done that, the file should run like any other program on a unix system.
__________________
Coop
Reply With Quote
Reply

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

Powered by vBadvanced CMPS v3.2.3

All times are GMT -5. The time now is 05:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.