LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-10-2009, 12:02 PM   #1
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
php cgi scripting


how do i setup a apache with php cgi script support (eg: view server's top output on web browser)?
 
Old 10-11-2009, 05:28 AM   #2
eth1
Member
 
Registered: May 2008
Posts: 97

Rep: Reputation: 20
You can always put the CGI program in cgi-bin directory inside the DocumentRoot directory. Check for the ScriptAlias directive in Apache configuration file httpd.conf

Once you've determined/setup the cgi-bin directory and configured Apache, you should be able to run CGI programs via the browser.

Since you're planning on doing this using PHP, you need to check for PHP exec function,

 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: An introduction to CGI scripting with Python LXer Syndicated Linux News 0 06-04-2008 11:20 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
cgi and shell scripting, setting it up? GridX Programming 7 04-12-2004 11:01 PM
another cgi and shell scripting problem + webserver prinski Programming 6 04-08-2004 04:25 PM
PHP/CGI help ugenn Programming 2 08-23-2002 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration