LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2005, 07:35 AM   #1
tntcoder
Member
 
Registered: Sep 2003
Distribution: Arch
Posts: 89

Rep: Reputation: 15
Installing PHP


Hi,

Im having some problems getting my head around how to install php with apache on slackware. Apache was installed during the slakware installation so i didnt get to choose any options, and looking on the php docs, i need mod_so on i think and im not sure where the apx files are, i do know that my apache docs are in /var/www and conf is in /etc/apache.

Can someone tell me how to install php? I have extracted the tar file to a folder ready to install im just not sure what commands to run, i would also like all of the php modules installed.

Thanks
 
Old 08-23-2005, 08:20 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Download the php package from Slackware's website. It will be in the 10.1/patches directory and istall it. If you want to install from source, you'll have to do a:
./configure
make
make install

The configure part is when you set the options that you want.
 
Old 08-23-2005, 08:27 AM   #3
tntcoder
Member
 
Registered: Sep 2003
Distribution: Arch
Posts: 89

Original Poster
Rep: Reputation: 15
Hi,

Ive looked on the slackware site, and they dont have a package of the new version of php, so i will need to install from source. I have no idea which options i need to enter in order for it to intergrate with apache though
 
Old 08-23-2005, 09:51 AM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Version 4.4 is the latest and version 4.3.10 is the version on the Slackware site. I personually use the Slackware version and have had no problems with it.

To make it work with apache, you need to edit the /etc/apache/httpd.conf file. At the very end there is a php section. Uncomment the line that says:
Include /etc/apache/mod_php.conf

When you do the configure, you'll need to include things that you want to use with it, like mysql and such. I do not know if you looked at this http://www.php.net/manual/en/install.unix.php , but the first comment at the end has an examples on configuring.
I would say this would work for you.

./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/share --with-openssl --with-zlib --enable-exif --with-gd

You might have to play around with it a little though and include or exclude things.
 
Old 12-17-2005, 03:53 AM   #5
hadiseh
Member
 
Registered: Dec 2005
Posts: 38

Rep: Reputation: 15
hi
i had a lot of prob during php installation.but this configure source solves all of them:
'./configure' '--enable-experimental-zts' '--with-curl' '--with-pear' '--enable-mbstring' '--with-calendar=shared' '--enable-memory-limit' '--enable-magic-quotes' '--enable-wddx' '--with-mhash' '--with-kerberos' '--with-libxml-dir=/usr' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-freetype' '--with-ttf' '--enable-ftp' '--enable-bcmath' '--disable-debug' '--with-gd' '--with-png' '--with-zlib' '--enable-yp' '--with-mysql'
before using it,use make clean command.
 
  


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
Installing PHP Verbal Kint Linux - Software 2 09-24-2005 11:08 AM
installing php 5.0.4 Infernal67 Mandriva 26 04-12-2005 06:02 PM
Installing PHP vinicius Linux - Newbie 5 09-18-2003 12:36 PM
installing php loadimmed Linux - General 2 07-22-2003 10:36 AM
Installing PHP help, please. WorldBuilder Linux - Software 3 06-06-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration