LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-10-2006, 04:37 PM   #1
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Rep: Reputation: 30
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
 
Old 01-10-2006, 04:42 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
./configure <options>
make
make install

 
Old 01-10-2006, 04:43 PM   #3
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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
 
Old 01-10-2006, 04:48 PM   #4
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
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
 
Old 01-10-2006, 04:59 PM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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.
 
Old 01-10-2006, 05:03 PM   #6
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
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?
 
Old 01-10-2006, 05:13 PM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 49
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.
 
Old 01-10-2006, 05:18 PM   #8
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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

Last edited by phil.d.g; 01-10-2006 at 05:20 PM.
 
Old 01-10-2006, 05:23 PM   #9
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
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

Last edited by scrupul0us; 01-10-2006 at 05:37 PM.
 
Old 01-10-2006, 05:42 PM   #10
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
What were the last few lines of output from the ./configure command, it sounds as though it was unsuccessful
 
Old 01-10-2006, 05:46 PM   #11
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
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
 
Old 01-10-2006, 05:50 PM   #12
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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

Last edited by phil.d.g; 01-10-2006 at 05:53 PM.
 
Old 01-10-2006, 05:53 PM   #13
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
./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
 
Old 01-10-2006, 05:54 PM   #14
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30
thats the default string from what slack installed for 4.4.0
 
Old 01-10-2006, 06:35 PM   #15
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xerces: upgrading version 1 to 2 jbsarma Linux - Newbie 2 08-24-2005 02:15 PM
upgrading to newest version of php BoBByCooL Linux - Newbie 4 05-25-2005 11:05 AM
Upgrading from old to new version of teamspeak. requiem Linux - Software 0 06-08-2004 10:15 PM
Upgrading KDE to newest version Shadzilla Linux - Software 6 01-21-2004 02:21 AM
upgrading OOo to version 1.1 demmylls Linux - Software 2 01-14-2004 08:08 PM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration