Help - Search - Members - Calendar
Full Version: PHP5 & Fedora
The Planet Forums > System Administration > General Support Questions
ttucholka
has anyone upgraded fedora core1 to PHP5 yet?

if so, how?

rpm? or compile from source?
Dave#
I compiled from source
ttucholka
can u show me the ./configure line you used?

I compiled php5 from source, then restarted httpd, however phpinfo.php still reports php v 4.3.8 running... yet when I do a php -v it says php 5.0
Dave#
QUOTE
Originally posted by ttucholka
can u show me the ./configure line you used?

I compiled php5 from source, then restarted httpd, however phpinfo.php still reports php v 4.3.8 running... yet when I do a php -v   it says php 5.0


looks like you used an RPM to update PHP and this had updated the php binary but not the apache module (libphp4.so)

Did you compile with--apxs=/path/to/apxs
ttucholka
I did...

./configure --with-mysql --with-apxs2

make

make install

then copied the php-dist.php to /etc/php.ini

then restarted httpd

then http://myserver/phpinfo.php (reports php 4.3.icon_cool.gif
Dave#
QUOTE
Originally posted by ttucholka
I did...

./configure --with-mysql --with-apxs2

make

make install

then copied the php-dist.php to /etc/php.ini

then restarted httpd

then http://myserver/phpinfo.php (reports php 4.3.icon_cool.gif


so you are using apache2?

do an ls -al on modules/libphp4.so and check it's creation date
ttucholka
ls -al on modules/libphp4.so
ls: on: No such file or directory
ls: modules/libphp4.so: No such file or directory
Dave#
QUOTE
Originally posted by ttucholka
ls -al on modules/libphp4.so  
ls: on: No such file or directory
ls: modules/libphp4.so: No such file or directory


isn't there a modules or libexec directory under the HTTPD install directory? You will be able to find the location by grepping for it in httpd.conf
ttucholka
I have /etc/httpd/modules
and libphp4.so and libphp5.so are there..
ttucholka
i also have a /usr/lib/httpd/modules with libphp4.so and libphp5.so

httpd.conf
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
Dave#
QUOTE
Originally posted by ttucholka
i also have a /usr/lib/httpd/modules with libphp4.so and libphp5.so

httpd.conf
LoadModule php5_module        /usr/lib/httpd/modules/libphp5.so


looks like some is screwed up with an RPM install and a source install, double check httpd.conf and rem ove anything with libphp4.so
ttucholka
I guess I should have just waited for a PHP5 FC1 RPM
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.