You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "motty.cruz" <mo...@gmail.com> on 2010/11/16 00:43:08 UTC

[users@httpd] Apache22 + PHP52

Hello, 
I installed the following 
Apache 2.2 
PHP 5.2
MySQL 5.1

But when I access domain.com/test.php I get the following
<?php
        Phpinfo();
?>

I don't get the usual output by PHP, instead I get the code; acting as if I
don't have PHP enable in Apache22. 

In my httpd.conf 
LoadModule php5_module        libexec/apache22/libphp5.so
#
#

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>
#
#
Am I missing anything else?  Your helped is appreciated 
Thanks, 
-Motty


---------------------------------------------------------------------
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: [users@httpd] Apache22 + PHP52

Posted by "motty.cruz" <mo...@gmail.com>.
Thanks Eric, 
I restore the original httpd.conf file and added the following 

# Replace the following with the correct path and version of your php module
LoadModule php5_module modules/libphp5.so
# (other modules)

<FilesMatch \.php$>
  SetHandler application/x-httpd-php
</FilesMatch>

It's working fine; 
Thanks, 
-Motty

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com] 
Sent: Monday, November 15, 2010 4:01 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache22 + PHP52

On Mon, Nov 15, 2010 at 6:55 PM, motty.cruz <mo...@gmail.com> wrote:
> Thanks Eric,
> I tried that too! To no success.
>
http://wiki.apache.org/httpd/PHPDownload

---------------------------------------------------------------------
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


Re: [users@httpd] Apache22 + PHP52

Posted by iñigo medina <im...@grosshat.com>.
First of all fix to lowercase the function phpinfo().

iñ
El 16/11/2010 04:13, "Sharl.Jimh.Tsin" <am...@gmail.com> escribió:

Re: [users@httpd] Apache22 + PHP52

Posted by "Sharl.Jimh.Tsin" <am...@gmail.com>.
it is so strange,check your httpd logs and server-info.

Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)



2010/11/16 Eric Covener <co...@gmail.com>:
> On Mon, Nov 15, 2010 at 6:55 PM, motty.cruz <mo...@gmail.com> wrote:
>> Thanks Eric,
>> I tried that too! To no success.
>>
> http://wiki.apache.org/httpd/PHPDownload
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] Apache22 + PHP52

Posted by Eric Covener <co...@gmail.com>.
On Mon, Nov 15, 2010 at 6:55 PM, motty.cruz <mo...@gmail.com> wrote:
> Thanks Eric,
> I tried that too! To no success.
>
http://wiki.apache.org/httpd/PHPDownload

---------------------------------------------------------------------
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: [users@httpd] Apache22 + PHP52

Posted by "motty.cruz" <mo...@gmail.com>.
Thanks Eric, 
I tried that too! To no success. 

Thanks, 
-Motty

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com] 
Sent: Monday, November 15, 2010 3:51 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache22 + PHP52

On Mon, Nov 15, 2010 at 6:43 PM, motty.cruz <mo...@gmail.com> wrote:
> Hello,
> I installed the following
> Apache 2.2
> PHP 5.2
> MySQL 5.1
>
> But when I access domain.com/test.php I get the following <?php
>        Phpinfo();
> ?>
>
> I don't get the usual output by PHP, instead I get the code; acting as 
> if I don't have PHP enable in Apache22.
>
> In my httpd.conf
> LoadModule php5_module        libexec/apache22/libphp5.so # #
>
> <IfModule dir_module>
>    DirectoryIndex index.php index.html </IfModule> # # Am I missing 
> anything else?  Your helped is appreciated

SetHandler is usually used to ask mod_php to handle certain content:
http://www.php.net/manual/en/install.unix.apache2.php

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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


Re: [users@httpd] Apache22 + PHP52

Posted by Eric Covener <co...@gmail.com>.
On Mon, Nov 15, 2010 at 6:43 PM, motty.cruz <mo...@gmail.com> wrote:
> Hello,
> I installed the following
> Apache 2.2
> PHP 5.2
> MySQL 5.1
>
> But when I access domain.com/test.php I get the following
> <?php
>        Phpinfo();
> ?>
>
> I don't get the usual output by PHP, instead I get the code; acting as if I
> don't have PHP enable in Apache22.
>
> In my httpd.conf
> LoadModule php5_module        libexec/apache22/libphp5.so
> #
> #
>
> <IfModule dir_module>
>    DirectoryIndex index.php index.html
> </IfModule>
> #
> #
> Am I missing anything else?  Your helped is appreciated

SetHandler is usually used to ask mod_php to handle certain content:
http://www.php.net/manual/en/install.unix.apache2.php

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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