LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Upgrading 10.2's version of php (https://www.linuxquestions.org/questions/slackware-14/upgrading-10-2s-version-of-php-401748/)

scrupul0us 01-10-2006 04:37 PM

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

mdarby 01-10-2006 04:42 PM

./configure <options>
make
make install

;)

phil.d.g 01-10-2006 04:43 PM

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

scrupul0us 01-10-2006 04:48 PM

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

phil.d.g 01-10-2006 04:59 PM

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.

scrupul0us 01-10-2006 05:03 PM

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
based on it looking for the old package in var/log/packages/

but i get:

Code:

root@SERVER:/tmp# upgradepkg php-4.4.0-i486-4 php-5.1.1.tar.gz

Error:  incoming package ./php-4.4.0-i486-4.tgz not found.


Error:  there is no installed package named php-5.1.1.tar.gz.
        (looking for /var/log/packages/php-5.1.1.tar.gz)

ne ideas?

Poetics 01-10-2006 05:13 PM

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.

phil.d.g 01-10-2006 05:18 PM

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

scrupul0us 01-10-2006 05:23 PM

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
make: *** No targets specified and no makefile found.  Stop.
root@SERVER:/tmp/php-5.1.1# make install
make: *** No rule to make target `install'.  Stop.

i do have a makedist* in the directory but as imr eading along the config and install dirs on php.net theres no mention of that

and not that it makes a diff (maybe it does) but im logged in via PuTTY

phil.d.g 01-10-2006 05:42 PM

What were the last few lines of output from the ./configure command, it sounds as though it was unsuccessful

scrupul0us 01-10-2006 05:46 PM

Code:

configure: error: Cannot find rfc822.h. Please check your c-client installation.
man i hope slack 10.3 comes with apache 2.0 and php 5.x

phil.d.g 01-10-2006 05:50 PM

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

scrupul0us 01-10-2006 05:53 PM

./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

scrupul0us 01-10-2006 05:54 PM

thats the default string from what slack installed for 4.4.0

phil.d.g 01-10-2006 06:35 PM

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:

# we need to compile Pine to get c-client.a for IMAP support:
is the bit you need


All times are GMT -5. The time now is 06:16 AM.