You are not logged in.
Pages: 1
I was following the LAMP tutorial, but PHP doesn't seem to work.
This is off of a fresh arch install.
Did the following:
pacman -S apache php php-apache
I then add 'LoadModule php5_module modules/libphp5.so' to httpd.conf and restart the server
If I navigate to the server, I see "Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 with Suhosin-Patch Server" at the bottom. Seems like PHP is there and working.
I then create a test file phpinfo.php with the following: <?php phpinfo(); ?>
If I try to load that file, it displays its contents.
If I add 'AddType application/x-httpd-php .php' to httpd.conf, nothing changes. Should be working according to the wiki article. I'm so confused.
Offline
Besides the LoadModule directive, you also need:
Include conf/extra/php5_module.conf
Offline
Oh!
This wasn't in the wiki. The wiki says:
Include /etc/httpd/conf/extra/php5_module.conf
But your's works. I just tried your's, restarted the server and it worked. Then I put the one above back in...restarted the server, it didn't work. Then your's again..worked. Weird. But thanks!
Offline
That is weird indeed. Actually, both paths should work as the Include directive accepts both absolute and relative (to ServerRoot) paths.
I'm baffled as well.
Offline
Pages: 1