On Mon, 2007-07-30 at 20:48 +0100, Venura Mendis wrote:
I installed phpmyadmin and mysql server using aptget, it picked up apache2 as a dependency and seemed to confiigure everything for me. I guess the difference is that you installed apache first.
Thanks for that useful tip... I will bear it in mind if I have to set up another server. When I set up this server however I thought I would take it step by step and install apache2 first to make sure it was running ok before installing php5. I suppose I could un-install php and apache and try re-installing as you suggest but, as Matt suggested; I think the problem is probably that I have simply not configured something correctly in apache2.conf and php.ini
On 7/27/07, mephi matthew.j.green@ntlworld.com wrote:
At first glance, it looks like it's an Apache config problem.
I googled for "apache php ubuntu" and it came up with this: http://www.cwassall.co.uk/pages/linux/ubuntu-server.html
This makes it look like you've got to edit the /etc/apache2/apache2.conf and the /etc/php5/apache2/php.ini files to properly 'link' php5 to apache.
Thanks for the link to ubuntu-server.html but, unfortunately, it does not really go into enough detail. Like you suggest; I think the problem is that I have simply not configured apache2.conf and php.ini correctly to allow PHP to integrate into Apache.
I must admit that I assumed apache2.conf and php.ini would be automatically set up by apt-get so as to integrate them together and I am a bit apprehensive about tweaking anything I do not understand.
I can confirm that apache correctly displays the default placeholder page if I put http://localhost/ into firefox... Apache simply seems unable to display php files causing Firefox to suggest the php webpages are files to download rather than pages to display.
Are there any ALUGers who have managed to get php5 running on their Ubuntu apache2 boxes? If so I was wondering if you could either email your apache2.conf and php.ini files to me so I can compare them with mine and see where I have gone wrong or, alternatively, I have uploaded my own apache2.conf and php.ini up to my webspace if anyone would like to comment on their content and could suggest what I need to tweak.
I have uploaded my apache2.conf file to: http://www.suffolk-ancestor-genealogy-research.co.uk/alug/apache2_conf.txt
I have uploaded my php.ini file to: http://www.suffolk-ancestor-genealogy-research.co.uk/alug/php_ini.txt
My /etc/apache2/httpd.conf file is an empty file (zero bytes).
Any help would be appreciated.
Sagr.