I am totally confused when it comes to installing php 5 with apache 2.2. I know how to install an rpm, but php comes as a tarball. I dont know where to extract it to, and what files to edit to get it to work.
Can somebody write up a quick tutorial or point me to something better than php.net?
which distro are you using?
you may want to type simply yum install php
Searching has turned up nothing, it's all about starting from scratch with no apache and no php.
you want to start from scratch, so you need to compile the PHP
something like extract the tar, then run:
you can run ./configure --help to see more options.
you may see many errors on screen, please fix them top-down one by one
k so copy the tarball to where, after extracting cd to the dir it extracted to and do ./configure.. make and make install? Dont i have to edit httpd.conf
yeah, you right. you need to edit your httpd.conf
It's something like:
LoadModule php5_module /usr/local/lib/php/libphp5.so # edit the right path
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
So it doesnt matter where i extract the tarball to? Just run the make on it? How do I know what the path is that it installs to?
Thanks in advance for your help!
If you're also compiling httpd from scratch, you may want to follow this:
PHP: Apache 2.0 on Unix systems - Manual
HTTPD is already working, so is sql. i need to know how to get php to work under these circumstances.
just a manual compilation of php with all your modules you require in php thats it compile the php restart the httpd all set
sample include modules such as