php5 install does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php5
Installed apache via synaptics, successfully.
Needed PHP
Installed php5, does not work.
Symptom:
When trying to open a *.php page containing <?php phpinfo(); ?> on my apache server all I get is a message box asking me if I want to save or open the page.
Contents of /var/log/
After a day of Google found the cause: installation program does not create a file php5.load. Manually creating it and putting a line
LoadModule php5_module /usr/lib/
then placing it in the /etc/apache2/
Ubuntu Hardy
Description: Ubuntu 8.04.1
Release: 8.04
Partial output of phpinfo:
PHP Version 5.2.4-2ubuntu5.1
System Linux homebase 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686
Build Date May 9 2008 16:14:00
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/
Scan this dir for additional .ini files /etc/php5/
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
-------
apt-cache policy php5
php5:
Installed: 5.2.4-2ubuntu5.1
Candidate: 5.2.4-2ubuntu5.1
Version table:
*** 5.2.4-2ubuntu5.1 0
500 http://
100 /var/lib/
5.2.4-2ubuntu5 0
500 http://
apt-cache policy apache2
apache2:
Installed: 2.2.8-1ubuntu0.3
Candidate: 2.2.8-1ubuntu0.3
Version table:
*** 2.2.8-1ubuntu0.3 0
500 http://
100 /var/lib/
2.2.8-1 0
500 http://
-------
This behavior happends even if I use apt-get directly.
I can't reproduce the issue. 127.0.0. 1/index. php
Steps i do to try to reproduce it:
1. install php5 (it installs apache2 as dependency)
2. place a file in /var/www as the follow:
[buster:/var/www] nxvl$ cat index.php
<?php phpinfo(); ?>
3. Open a browser and point it to http://
Result: It shows the php information required.
I'm marking this bug as invalid. Please open the bug if someone can reproduce it. Or the reporter includes a new test case.