You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tim Thorburn <im...@nwconx.net> on 2002/08/18 22:57:07 UTC
httpd.conf settings ...
Hi,
Its late on a Sunday afternoon and I'm drawing a complete blank... Over
this past weekend I've been playing around with setting up a test linux
webserver using Red Hat 7.2, Apache 1.3.26, MySQL 3.23.52, and PHP
4.2.2. I was easily able to get MySQL and Apache running, but for some
reason I can't seem to get PHP to work under Apache.
When I installed Apache I simply did:
./configure --prefix=/path/to/apache
And in PHP's configure:
./configure --prefix=/path/to/php --with-apache=/path/to/apache
--with-mysql=/path/to/mysql --enable-ftp --enable-magic-quotes
Now I know I've got to add a command into the httpd.conf file for Apache,
here's what I've got now:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Whenever I try to load a PHP file through Apache though, it wants me to d/l
the file rather than running it. It's been awhile since I tried to do
anything on a linux server - where'd I go wrong?
Thanks
-Tim
---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: httpd.conf settings ...
Posted by Esteban <ep...@yahoo.com.ar>.
Hi,
Do you activate Php module when you configure apache???
after done "make install" (in PHP dir )you have to do: (in you apache dir)
./configure --prefix=/path/to/apache --activate-module=src/modules/php4/libp
hp4.a and then make , make install...
Esteban
----- Original Message -----
From: "Tim Thorburn" <im...@nwconx.net>
To: <us...@httpd.apache.org>
Sent: Sunday, August 18, 2002 5:57 PM
Subject: httpd.conf settings ...
> Hi,
>
> Its late on a Sunday afternoon and I'm drawing a complete blank... Over
> this past weekend I've been playing around with setting up a test linux
> webserver using Red Hat 7.2, Apache 1.3.26, MySQL 3.23.52, and PHP
> 4.2.2. I was easily able to get MySQL and Apache running, but for some
> reason I can't seem to get PHP to work under Apache.
>
> When I installed Apache I simply did:
> ./configure --prefix=/path/to/apache
>
> And in PHP's configure:
> ./configure --prefix=/path/to/php --with-apache=/path/to/apache
> --with-mysql=/path/to/mysql --enable-ftp --enable-magic-quotes
>
> Now I know I've got to add a command into the httpd.conf file for Apache,
> here's what I've got now:
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Whenever I try to load a PHP file through Apache though, it wants me to
d/l
> the file rather than running it. It's been awhile since I tried to do
> anything on a linux server - where'd I go wrong?
>
> Thanks
> -Tim
>
>
>
> ---------------------------------------------------------------------
> 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: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
Ahora podés usar Yahoo! Messenger desde tu celular. Aprendé cómo hacerlo en Yahoo! Móvil: http://ar.mobile.yahoo.com/sms.html
---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: httpd.conf settings ...
Posted by Rasmus Lerdorf <ra...@apache.org>.
It would probably be more appropriate to ask this on the php-install list.
But, the short answer to your question is that you didn't install PHP at
all. When using the --with-apache configure flag to PHP you are building
a static module version of PHP that must be compiled directly into Apache.
So after configuring and installing PHP in that case, you need to
configure Apache to enable that module. All this is outlined in PHP's
INSTALL file.
I would suggest using the DSO install mechanism. Make sure your Apache
install has mod_so enabled (which in your case it doesn't appear you
enabled that) and then use --with-apxs instead of --with-apache when you
configure PHP. But again, this is all explained in the PHP INSTALL file.
-Rasmus
On Sun, 18 Aug 2002, Tim Thorburn wrote:
> Hi,
>
> Its late on a Sunday afternoon and I'm drawing a complete blank... Over
> this past weekend I've been playing around with setting up a test linux
> webserver using Red Hat 7.2, Apache 1.3.26, MySQL 3.23.52, and PHP
> 4.2.2. I was easily able to get MySQL and Apache running, but for some
> reason I can't seem to get PHP to work under Apache.
>
> When I installed Apache I simply did:
> ./configure --prefix=/path/to/apache
>
> And in PHP's configure:
> ./configure --prefix=/path/to/php --with-apache=/path/to/apache
> --with-mysql=/path/to/mysql --enable-ftp --enable-magic-quotes
>
> Now I know I've got to add a command into the httpd.conf file for Apache,
> here's what I've got now:
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Whenever I try to load a PHP file through Apache though, it wants me to d/l
> the file rather than running it. It's been awhile since I tried to do
> anything on a linux server - where'd I go wrong?
>
> Thanks
> -Tim
>
>
>
> ---------------------------------------------------------------------
> 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: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org