Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 25th, 2001, 03:31 PM
blueaxis blueaxis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 5 blueaxis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Setup problems?

How can I setting up the apache+php, in the way that, php is a CGI interpreter?


and also, can I setting up the php to been a cgi interpreter and apache module at the same time.


Lastly, if I can, how does the apache, distinguish which php file should parsed by CGI interperter and which PHP file parsed by apache module??

Reply With Quote
  #2  
Old June 25th, 2001, 06:55 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> in the way that, php is a CGI interpreter?

Just don't specify --with-apache or --with-apxs.

e.g:

--prefix=/usr/local
--with-config-file-path=/usr/local/etc/php
--disable-pear
--enable-versioning
--with-system-regex
--enable-track-vars

>> can I setting up the php to been a cgi interpreter and...

Yes. Many UNIX systems come with Perl preinstalled. Does that mean they can't install mod_perl? No.

>> distinguish which php file should parsed by CGI interperter

Put PHP CGI scripts in your ScriptAlias'ed cgi-bin, or name those scripts with .cgi extension for execution outside of cgi-bin. Keep in mind that a CGI script doesn't always be Perl, it could be python, shell, TCL, bash or any others. Another signaficant difference is that, you chmod your CGI scripts to be executable, you don't chmod 755 to your PHP script as Apache module.

Last edited by freebsd : June 25th, 2001 at 07:00 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Setup problems?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway