LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing PHP (https://www.linuxquestions.org/questions/linux-newbie-8/installing-php-356104/)

tntcoder 08-23-2005 07:35 AM

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

tangle 08-23-2005 08:20 AM

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.

tntcoder 08-23-2005 08:27 AM

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 :confused:

tangle 08-23-2005 09:51 AM

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.

hadiseh 12-17-2005 03:53 AM

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.


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