Jump to content

Apache doesn't find updated PHP module


fapeg

Recommended Posts

Hi,

I've got PHP 5.1.2 installed on my Suse 9.3 Server. PHP is compiled without the freetype library, so I decided to download the latest PHP version and compile it with freetype support. I ran the configure script, make didn't give any errors and make install worked also well.
My configure parametres:
[code]foobar@v25809:~/php-5.2.0> './configure' '--prefix=/usr/local/php5' '--with-apxs2=/usr/sbin/apxs2' '--with-libxml-dir=/usr/lib'
'--with-zlib' '--with-zlib-dir=/usr/lib' '--with-mysql=/usr/bin/mysql' '--with-gd' '--enable-sockets' '--with-gettext=/usr/bin/gettext' '--with-freetype-dir=/usr/local'[/code]
make install gave the following output:
[code]v25809:/home/foobar/php-5.2.0 # make install
Installing PHP SAPI module:      cgi
Installing PHP CGI into: /usr/local/bin/
Installing build environment:    /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:      /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:            /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - already installed: 1.3.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] PEAR          - already installed: 1.4.11
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/include/php/ext/pdo/
[/code]
PHP is loaded my /etc/sysconfig/apache2:
[code]APACHE_MODULES="mod_perl mod_rewrite access actions alias auth auth_dbm autoindex cgi dir env expires
include log_config mime negotiation setenvif ssl  userdir php5 /usr/lib/apache2-prefork/mod_frontpage.so perl python suexec"
[/code]
When I run PHP on the commandline it gives me the right version (5.2) but when I run an phpinfo script, my apache says I've 5.1.2 installed. I don't know where I have to tell apache to use the "newest" PHP version.
Thanks for helping me, fapeg

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.