php5 install does not work

Bug #245015 reported by sergey
8
This bug affects 1 person
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/apache/error.log does not show a php entry.
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/apache2/modules/libphp5.so

 then placing it in the /etc/apache2/mods-availible and making a soft link to /etc/apache2/mods-enabled helped. After restarting Apache phpinfo worked just fine.

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/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
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.*
--------------------------------------------------------------cut---------
 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://se.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     5.2.4-2ubuntu5 0
        500 http://se.archive.ubuntu.com hardy/main Packages

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://se.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     2.2.8-1 0
        500 http://se.archive.ubuntu.com hardy/main Packages
------------------------------------------------------------------------------------
This behavior happends even if I use apt-get directly.

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

I can't reproduce the issue.
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://127.0.0.1/index.php

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.

Changed in php5:
status: New → Invalid
Revision history for this message
sergey (sergeyshanygin) wrote : Re: [Bug 245015] Re: php5 install does not work

I had Apache installed first, then PHP. Might that be a source of
problem? In my setup I tried most of the day before fixing it
manually...

> I can't reproduce the issue.
> 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://127.0.0.1/index.php
>
> 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.
>
> ** Changed in: php5 (Ubuntu)
> Status: New => Invalid
>
> --
> php5 install does not work
> https://bugs.launchpad.net/bugs/245015
> You received this bug notification because you are a direct
> subscriber
> of the bug.
>

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

did you installed apache2-common?

Revision history for this message
sergey (sergeyshanygin) wrote :

yes, it came originally on the first install.. see output of dpkg-l
below. I did not change anything later, except to install PHP which
did not work because of this little glitch which I fixed manually.

dpkg -l|grep apache
ii apache2 2.2.8-1ubuntu0.3
                            Next generation, scalable, extendable web
se
ii apache2-mpm-prefork 2.2.8-1ubuntu0.3
                            Traditional model for Apache HTTPD
ii apache2-utils 2.2.8-1ubuntu0.3
                            utility programs for webservers
ii apache2.2-common 2.2.8-1ubuntu0.3
                            Next generation, scalable, extendable web
se
ii libapache2-mod-php5 5.2.4-2ubuntu5.1
                            server-side, HTML-embedded scripting
languag

--- Nicolas Valcárcel (nxvl) <email address hidden> wrote:

> did you installed apache2-common?

Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

I had this working on lucid then I upgraded and now it doesn't work

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.