You are not logged in.
Hi
After reading the LAMP Wiki for setting up the Apache web server on an Arch and install PHP and MySQL and integrate these in the Apache server, the PHP part didn't actally run phpinfo(); or any PHP.
I am running on x64 though I don't think this should be a problem since I didn't have this problem on 64bit version of Ubuntu or Mandriva.
Any idea?
p.s.I have made pacman -Syu
Best Regards,
Jorge.
Offline
If it's printing out the php code instead of running it, it's most likely one of two problems:
1) You're missing the part
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
2) You didn't restart the apache service
Sic gorgiamus allos subjectatos nunc
Offline
Try checking to see if you have a /etc/php/php.ini.pacnew.
If so you might be using an older config file. rename (mv) php.ini.pacnew to php.ini,
and then restart apache.
Solved the issue for me when I had the same problem.
Edit: Just diff'ed the old php.ini and the new one and found this:
252c252
< open_basedir = /home/:/tmp/:/usr/share/pear/
---
> open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/
561c561
< cgi.fix_pathinfo=1
---
> ; cgi.fix_pathinfo=1
The difference in the open_basedir path is important because the new apache
now serves documents out of /srv/http instead of /home. Also if you read php.ini you'll see:
; open_basedir, if set, limits all file operations to the defined directory
; and below.
So I guess that explains that.
Last edited by veek (2008-09-06 09:07:59)
Offline