No, that's not true. I'm not up with php much, but you can run it as cgi. I don't know if it's still true, but php didn't used to work with Apache 2.0.* as a module, but you could run it still as cgi, though it's not recommended for security reasons..

you could...

ScriptAlias /php/ "/usr/local/bin/"
<Location ~ /php>
 Options -Indexes
</Location>

%{109}: file /usr/local/bin/php
/usr/local/bin/php: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
dynamically linked (uses shared libs), not stripped

-Dave



----- Original Message ----- From: "Steven Pierce" <[EMAIL PROTECTED]>
To: <users@httpd.apache.org>
Sent: Thursday, January 05, 2006 1:47 PM
Subject: Re: [EMAIL PROTECTED] Scripts



No it can not.  You must have the mod_php for it to run.  CGI scripts run
different then PHP scripts.  PHP runs from code on the page, CGI is a
run from a directory.



*********** REPLY SEPARATOR  ***********

On 1/5/2006 at 7:36 PM Octavian Rasnita wrote:

But I think PHP programs still can be used as a cgi script even without
the
mod_php module.

Teddy

----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <users@httpd.apache.org>
Sent: Thursday, January 05, 2006 17:07 PM
Subject: Re: [EMAIL PROTECTED] Scripts


Hey.

in your config file.  There is a line that looks like this.

 LoadModule php4_module libexec/libphp4.so
 AddType application/x-httpd-php .php .php3 .phtml
 AddType application/x-httpd-php-source .phps


You want php out of the question 100% then remove thoes lines.

If you want php for a directory only (lets say /web/php-files/

then your your did something like this.

</Directory /web/php-files>
 AddType application/x-httpd-php .php .php3 .phtml
 AddType application/x-httpd-php-source .phps
</Directory>



Let me know if that works for ya  :)

On Thu, 05 Jan 2006 19:41:55 +0000, Muhammad Rizwan <[EMAIL PROTECTED]>
wrote:
>
> I am just unable to understand that exactly which option is used in
> APACHE (linux) to run PHP pages... and by disabling which option i can
> stop executing these sort of pages... I searched a lot on google,,, but
> none of the article provided me the answer.
>
> Thanks!
>
> On Wed, 2006-01-04 at 16:06, Steven Pierce wrote:
>> *********** REPLY SEPARATOR  ***********
>>
>> On 1/4/2006 at 3:31 PM Muhammad Rizwan wrote:
>>
>> >Hello
>> >
>> >Few things i want to ask about Apache (Linux).
>> >
>> >1- How we can enable front page extension
>>
>> http://www.rtr.com/fpsupport/download.htm
>> First you need to go to this web site and dnload the "extensions" that
> are needed.
>> The RTR.com site is your friend for Linux / Frontpage
>>
>>
>
http://www.e-gineer.com/v1/instructions/install-frontpage-extensions-for-apache-on-linux.htm
>>
>> Next you can try this page for the install.  I have not personally
used
> these, but you can do
>> a google search on "Linux FrontPage Extensions" and it will give you a
> fair amount of
>> hits on the install.
>>
>>
>> >2- I have add ScriptAlias in my virtual domain entry, as:
>> > ScriptAlias /cgi-bin/ mysite.com/www/cgi-bin/"
>> >   Now which type of scripts i can execute in cgi-bin directory.
>>
>> http://www.thesitewizard.com/archive/addcgitoapache.shtml
>>
>> http://httpd.apache.org/docs/2.0/howto/cgi.html
>>
>> These two should get you started.  The Doc's on the Apache site are
some
> of
>> the best.  You can use Google to the find the information on Apache's
> site, or
>> you can use the Apache site.
>>
>> >3- How i can execute php pages for this site.
>>
>> http://www.google.com/search?hl=en&q=apache+php
>>
>> Again google is your friend.  You can copy and paste the above link
and
> it will
>> 35 million hits on installing PHP.  You can also go to
> http://us2.php.net/install and that
>> will give you a really good idea on installing PHP for an Apache web
> site.
>>
>>
>> HTH
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server
> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>    "   from the digest: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.0.371 / Virus Database: 267.14.13/221 - Release Date: 1/4/2006




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to