[arch-general] Unable To Rendor PHP Pages in Apache

Ionut Biru biru.ionut at gmail.com
Tue Mar 23 22:18:06 CET 2010


On 03/23/2010 11:12 PM, Carlos Mennens wrote:
> I today installed Apache on my Arch Linux server. I did the following:
>
> # pacman -S php apache php-apache mcrypt pcre
>
> Then I edited the /etc/php/php.ini file&  un-commented the following:
>
> [...]
> extension=mcrypt.so
> extension=mysql.so
> extension=mysqli.so
> ;extension=odbc.so
> ;extension=openssl.so
> ;extension=pdo.so
> ;extension=pdo_mysql.so
> [...]
>
> I then restarted the 'httpd' service and when I try to render a HTML
> page with PHP code, it wont rendor the code properly and just looks
> like a script / code. I don't understand why I can't get Apache to
> render PHP pages. Does anyone know what I am missing? This is only a
> problem for me on Arch. RHEL, Debian, Ubuntu. and Slackware all work
> out of the box.
>
> Any suggestions?

yes. read the wiki about LAMP. installing packages is not enough. you 
have to tell apache to use php and is described on the wiki.

-- 
Ionut


More information about the arch-general mailing list