Current location: Hot Scripts Forums » Programming Languages » PHP » Help installing php as cgi


Help installing php as cgi

Reply
  #1 (permalink)  
Old 12-01-06, 09:35 AM
djhlhn's Avatar
djhlhn djhlhn is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Help installing php as cgi

Hi guys, I need some help installing php as cgi in apache. I have no idea what to put in httpd.conf, I threw in a
AddType application/x-httpd-php .php
[And that's it :-\ ]
I'm running apache 1.3.37 and php 4.4.4 here's my builds:

./configure \
--prefix=/www \
--enable-module=so \
--enable-module=rewrite \
--enable-shared=rewrite \
--enable-module=setenvif \
--enable-shared=setenvif \
--enable-module=mime \
--enable-shared=mime \
--enable-module=mime_magic \
--enable-shared=mime_magic \
--enable-module=speling \
--enable-shared=speling \
--enable-module=dir \
--enable-shared=dir \
--enable-module=auth \
--enable-shared=auth \
--enable-module=access \
--enable-shared=access \
--enable-module=alias \
--enable-shared=alias \
--enable-module=status \
--enable-shared=status \
--enable-module=userdir \
--enable-shared=userdir \
--enable-module=vhost_alias \
--enable-shared=vhost_alias \
--enable-module=env \
--enable-shared=env \
--enable-module=log_referer \
--enable-shared=log_referer \
--enable-module=log_config \
--enable-shared=log_config \
--enable-module=log_agent \
--enable-shared=log_agent \
--enable-module=headers \
--enable-shared=headers


and I'm just doing a simple build for php:

compile
make
make install

When run a php script thru localhost/index.php it opens up the script as a download....any ideas, guys? Thanks!
Reply With Quote
  #2 (permalink)  
Old 12-03-06, 04:06 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
take a look at this website:
http://www.thesitewizard.com/archive/php4install.shtml

in the middle of the page, there's some information on how to install php as cgi

UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 12-04-06, 11:04 AM
djhlhn's Avatar
djhlhn djhlhn is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, I'll take a look Unreal...Thanks for the update
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CGI Code Converting to PHP - need help PHP Warner PHP 4 03-29-06 07:32 AM
Installing PHP on Windows 2003 server NoMercy PHP 2 01-07-06 10:49 PM
Is there such a thing as a php or cgi visual compiler? Ireland Job Offers & Assistance 5 10-13-05 08:26 PM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
CGI or PHP better? mhs12grade1992 PHP 11 02-10-05 08:01 PM


All times are GMT -5. The time now is 05:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.