Upgrading 10.2's version of php
IS there a howto or can someone tell me how to upgrade the version of php that came with 10.2 to the latest 5.x
I know ill have to edit 2 lines in the apache mod_php.conf to point to the new php 5 modules but aside from that, how do i properly install/upgrade? thanks |
./configure <options>
make make install ;) |
There is a PHP-5.1.1 package in /testing in slackware-current. You can download this from your favourite mirror and use upgradepkg. Or you can get the source from php.net and compile it yourself
|
now will upgradepkg get rid of all the php 4.x stuff and just use the 5.x stuff??? ive heard things about .new files and stuff not always working
|
I would have thought so. I haven't used it myself, I always compile php and apache locally.
The .new files exist because upgradepkg won't delete the old config files, you should examine the old config files against their respective .new files. Maybe the problems are because people are using the config file from the old php-4.x that may contain now invalid parameters. |
well imhaving issues with upgradepkg
im using this at the CLI: Code:
upgradepkg php-4.4.0-i486-4 php-5.1.1.tar.gz but i get: Code:
root@SERVER:/tmp# upgradepkg php-4.4.0-i486-4 php-5.1.1.tar.gz |
a .tar.gz is not a slackpackage -- all of Slackware's 'packages' are .tgz
With the .tar.gz, you need to do the ./configure, make, make install jig. |
Thats true, if you are getting the php-5 from /testing make sure you get the package not the source.
Also your upgradepkg syntax is wrong, you should use Code:
upgradepkg php-4.4.0-i486-4%php-5.1.1-i486-1.tgz |
ok.. i did the configure command based on the what was reported in phpinfo(); for the previous version.. however when i try to type make or make install i get:
Code:
root@SERVER:/tmp/php-5.1.1# make and not that it makes a diff (maybe it does) but im logged in via PuTTY |
What were the last few lines of output from the ./configure command, it sounds as though it was unsuccessful
|
Code:
configure: error: Cannot find rfc822.h. Please check your c-client installation. |
What is your ./configure command look like, ie what arguments are you using
PS you can still try the php package from /testing ftp://ftp.slackware.com/pub/slackwar...1.1-i486-1.tgz |
./configure --prefix=/usr --disable-static --with-apxs=/usr/sbin/apxs --sysconfdir=/etc --enable-discard-path --with-config-file-path=/etc/apache --enable-safe-mode --with-openssl --with-mhash --enable-bcmath --with-bz2 --with-pic --enable-calendar --enable-ctype --with-gdbm --with-db3 --with-imap-ssl=/usr/local/lib/c-client --with-imap=/usr/local/lib/c-client --enable-dbase --enable-ftp --with-iconv --with-dom --with-exif --enable-exif --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-gmp --enable-mbstring --with-curl=/usr --with-pcre-regex=/usr --with-mysql=shared,/usr --with-gettext=shared,/usr --with-expat-dir=/usr --with-xml --enable-wddx --with-mm=/usr --enable-trans-sid --enable-shmop --enable-sockets --with-regex=php --enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --with-tsrm-pthreads --enable-shared --disable-debug --with-zlib=/usr
|
thats the default string from what slack installed for 4.4.0
|
Ermm, you need to compile pine and borrow a library and some header files from it.
Read the SlackBuild script for php, it'll be in /source/n/php. The section of code headed with the comment Quote:
|
All times are GMT -5. The time now is 06:16 AM. |