Re: borked install - cannot downgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Peter Hodge wrote:
Hi Brian,

1) For downgrading, make sure you strip the out the references to the PHP 5
module in apache config:

  > [activating module `php5' in /etc/httpd/conf/httpd.conf]

You'll need to edit httpd.conf and remove the php5 stuff (or you could just
remove everything php-related from there and re-install php 4).  Hopefully then
PHP 4 will start.


Success. Of course - the libphp5.so was still in httpd's modules directory, and it was attempting to load it.

2) Those PEAR errors are a bit strange:


[PEAR] Archive_Tar: PEAR_Registry: could not open filemap "/usr/share/pear/.filemap" [PEAR] Console_Getopt: PEAR_Registry: could not open filemap "/usr/share/pear/.filemap"


If that's a fresh install of PEAR on your system, then I would imagine .filemap
doesn't exist, so ask around on the PEAR mailing list.  That shouldn't stop PHP
running though.


It was a freshly de-installed PEAR, so, like the php5 module, it may have been there. But then, if i was installing fresh rfom source, i wouldn't expect it to be. I'll take your advice ad ask on a PEAR list.

3) Inside your php.ini file, comment out references to all modules/extensions
(remove the whole php.ini file if you have to, so that PHP starts up
'cleanly'), because that bunch of errors sounds like PHP is trying to load a
module called 'nModule', which isn't installed correctly, or was built against
5.1.4 and won't run with 4.4.0 now (naturally).  You might try running the PHP
executable on it's own (in /usr/bin/php or somewhere like that) and see if you
get the same errors as well.


Actually, it looked to me like that was a newline in the error msg:

... Unable to initialize module\nModule compiled with ...

It's gone now, in any case. Thanks for the insight.

Now, back to why the php5 install failed...

brian

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux