Public bug reported:

Binary package hint: php5

Installing php5-curl, the post-install script does an Apache2 "reload"
which refreshes the configuration, but does not cause the new libs to be
loaded into memory.   The result is any PHP page using curl will crash
until Apache2 is "restarted".

Install:

aptitude install php5-curl
The following NEW packages will be installed:
  php5-curl 
0 packages upgraded, 1 newly installed, 0 to remove and 69 not upgraded.
Need to get 26.9kB of archives. After unpacking 127kB will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5-curl amd64 
5.3.3-1ubuntu9.3 [26.9kB]
Fetched 26.9kB in 0s (48.3kB/s)
Selecting previously deselected package php5-curl.
(Reading database ... 566689 files and directories currently installed.)
Unpacking php5-curl (from .../php5-curl_5.3.3-1ubuntu9.3_amd64.deb) ...
Processing triggers for libapache2-mod-php5 ...
 * Reloading web server config apache2
apache2: Could not reliably determine the server's fully qualified domain name, 
using 127.0.0.1 for ServerName
   ...done.
Setting up php5-curl (5.3.3-1ubuntu9.3) ...

Error Received:
[Fri Apr 15 14:08:40 2011] [error] [client 67.70.64.123] PHP Fatal error:  Call 
to undefined function curl_init() in /opt/mozbx/class_zabbix.php on line 592

Workaround:
sudo /etc/init.d/apache2 restart
 * Restarting web server apache2

The problem is then resolved.

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/762054

Title:
  php5-curl install should restart apache not reload it

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to