Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-10-2006, 04:37 PM
|
#1
|
Member
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159
Rep:
|
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
|
|
|
01-10-2006, 04:42 PM
|
#2
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
./configure <options>
make
make install

|
|
|
01-10-2006, 04:43 PM
|
#3
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
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
|
|
|
01-10-2006, 04:48 PM
|
#4
|
Member
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159
Original Poster
Rep:
|
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
|
|
|
01-10-2006, 04:59 PM
|
#5
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
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.
|
|
|
01-10-2006, 05:03 PM
|
#6
|
Member
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159
Original Poster
Rep:
|
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?
|
|
|
01-10-2006, 05:13 PM
|
#7
|
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181
Rep:
|
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.
|
|
|
01-10-2006, 05:18 PM
|
#8
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
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.
|
|
|
01-10-2006, 05:23 PM
|
#9
|
Member
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159
Original Poster
Rep:
|
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.
|
|
|
01-10-2006, 05:42 PM
|
#10
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
What were the last few lines of output from the ./configure command, it sounds as though it was unsuccessful
|
|
|
01-10-2006, 05:46 PM
|
#11
|
Member
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159
Original Poster
Rep:
|
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
|
|
|
01-10-2006, 05:50 PM
|
#12
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
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.
|
|
|
01-10-2006, 05:53 PM
|
#13
|
Member
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159
Original Poster
Rep:
|
./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
|
|
|
01-10-2006, 05:54 PM
|
#14
|
Member
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159
Original Poster
Rep:
|
thats the default string from what slack installed for 4.4.0
|
|
|
01-10-2006, 06:35 PM
|
#15
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
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 10:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|