Questions about recompiling Apache and PHP (static)
Hi all,
I've just installed Apache with PHP as a static part of Apache (not a DSO) on SuSE Linux 9.0, using the following commands. First of all, I’ve saved the two tarballs in /usr/src/packages/SOURCES.
# cd /usr/src/packages/SOURCES
# tar xvfz php-4.3.4.tar.gz
# tar xvfz apache_1.3.29.tar.gz
# cd apache_1.3.29
# ./configure --prefix=/usr/local/apache --enable-module=so (see question 2)
# cd ../php-4.3.4
# ./configure
--with-mysql=/usr/
--with-apache=../apache_1.3.29
--with-jpeg-dir=/usr/lib
--enable-short-tags
--disable-magic_quotes
--disable-memory-limit (see question 3)
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini
# cd ../apache_1.3.27
# ./configure
--activate-module=src/modules/php4/libphp4.a
--enable-module=php4
--prefix=/usr/local/apache (see question 4)
# make
# make install
The following questions occured to me:
1) Is it true that I can clear the directory /usr/src/packages/SOURCES after this or are there parts in there that are being used by Apache or PHP?
2) Is it correct that I’ve installed PHP as a static module but I can use other DSO’s because I compiled Apache using ‘—enable-module=so’?
3) Unfortunately I’ve forgotten several parameters for the PHP configure. I like to add these to my PHP installation. Can I just rerun from the PHP configure and follow the rest of the steps or should I uninstall Apache/PHP and reinstall from scratch? If so: How can I remove the programs?
4) Is it needed to add ‘--prefix=/usr/local/apache’ since I added that line above already?
I hope that anyone is willing to answer my questions, so I can continue improving my new Linuxsystem. Thanks in advance!
Cheers,
Maarten
|