LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-28-2007, 06:04 AM   #1
jatender
LQ Newbie
 
Registered: Jun 2007
Posts: 17

Rep: Reputation: 0
installing src php5 or tar php5 step by step


Respected Sir,
I am new in RHEL4. I had uninstalled the php4.
Now i want to install PHP5. up2date is not taking it. yum and pup not working at all.
I will be very thankful if anybody can help me.
And tell me the step by step how to install and configure.
Regards,
Jatender
 
Old 06-28-2007, 06:47 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
The instructions here can help. They are for old amp versions but will work using current releases.
 
Old 06-28-2007, 10:29 AM   #3
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 248

Rep: Reputation: 36
It will depend on the Apache you're running, the libs you have install, and if you're using MySQL or another database. Here's the config string for my Apache 2.2.4 with MySQL as an example (config.nice file actually). The paths will probably need adjusting (such as X11 install base).

Code:
#! /bin/sh
#
# Created by configure

CFLAGS='-pipe -O2 -march=i686 ' \
CXXFLAGS='-pipe -O2 -march=i686 ' \
CC='gcc' \
CXX='g++' \
'./configure' \
'--cache-file=php-build.cache' \
'--prefix=/usr' \
'--sysconfdir=/etc' \
'--sharedstatedir=/var/log' \
'--localstatedir=/var/run' \
'--x-includes=/usr/X11R7/include' \
'--x-libraries=/usr/X11R7/lib' \
'--with-apxs2filter=/usr/bin/apxs' \
'--enable-force-cgi-redirect' \
'--enable-discard-path' \
'--enable-fastcgi' \
'--disable-path-info-check' \
'--disable-debug' \
'--with-config-file-path=/etc' \
'--with-config-file-scan-dir=/etc:/usr/etc:/usr/local/etc' \
'--with-exec-dir=/usr/libexec/php-sm-exec' \
'--enable-sigchild' \
'--enable-magic-quotes' \
'--disable-rpath' \
'--disable-ipv6' \
'--with-libxml-dir=/usr' \
'--with-openssl=/usr' \
'--with-pcre-regex=/usr' \
'--with-zlib' \
'--enable-bcmath' \
'--with-bz2' \
'--enable-calendar' \
'--with-curl' \
'--with-curlwrappers' \
'--enable-dba' \
'--with-gdbm' \
'--with-db4' \
'--with-inifile' \
'--with-flatfile' \
'--enable-dbase' \
'--enable-exif' \
'--enable-ftp' \
'--with-openssl-dir=/usr' \
'--with-gd=/usr/local' \
'--with-jpeg-dir=/usr' \
'--with-png-dir=/usr' \
'--with-zlib-dir=/usr' \
'--with-xpm-dir=/usr/X11R7' \
'--with-ttf=/usr' \
'--with-freetype-dir=/usr' \
'--with-t1lib=/usr' \
'--enable-gd-native-ttf' \
'--enable-gd-jis-conv' \
'--with-gettext=/usr' \
'--with-gmp' \
'--enable-mbstring' \
'--with-libmbfl' \
'--with-mhash' \
'--with-mime-magic=/etc/apache2/magic' \
'--with-mysql=/usr' \
'--with-mysql-sock=/var/run/mysql/mysqlsock' \
'--with-zlib-dir=/usr' \
'--with-ncurses' \
'--enable-pcntl' \
'--with-pspell=/usr' \
'--with-readline=/usr' \
'--enable-shmop' \
'--with-libxml-dir=/usr' \
'--with-snmp=/usr' \
'--with-openssl-dir=/usr' \
'--enable-soap' \
'--with-libxml-dir=/usr' \
'--enable-sockets' \
'--enable-sqlite-utf8' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-libxml-dir=/usr' \
'--with-xmlrpc' \
'--with-xmlreader' \
'--with-xsl=/usr' \
'--enable-zip' \
'--with-zlib-dir=/usr' \
'--with-pear=/usr/lib/php' \
'--enable-zend-multibyte' \
'--with-tsrm-pth' \
'--enable-shared' \
'--enable-static' \
'--with-gnu-ld' \
'--with-gnu-ld' \
"$@"
After that, I just make all check install, strip the binaries, chgrp bin them, make a /usr/doc/php-whatever-version-it-is directory, and restart Apache. The install should add the libphp5.so module into Apache's config file.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Step-By-Step Record: Installing Ndiswrapper/card on FC5 Sam Liu Linux - Wireless Networking 1 11-15-2006 10:40 AM
LXer: Atticware Revisited: Step-By-Step Instructions For Installing A Current Linux Distro On A Very Small, Very Old Laptop LXer Syndicated Linux News 0 07-04-2006 09:54 AM
Step by Step insturctions to installing AMsn messenger of Fedora Core 4 (older kernal lanerd Fedora 2 12-22-2005 05:52 PM
Step by step tutorial on Installing Identd needed sloik2000 Linux - Software 0 08-15-2004 10:16 AM
Installing Mandrake Linux 10, step by step tutorial for Windows users lucat Linux - Newbie 0 06-12-2004 06:03 PM


All times are GMT -5. The time now is 07:14 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
Open Source Consulting | Domain Registration