This post originated from an RSS feed registered with PHP Buzz
by Jon Wood.
Original Post: Setting Up PHP 5 Under Suse 9.1
Feed Title: Jon's Ramblings
Feed URL: http://www.jellybob.co.uk/rss.php?version=1.0
Feed Description: Some random talk on PHP, PEAR, and life.
Since Adam Trachtenberg just posted about problems getting PHP 5 workiong under Suse 9.1, I thought I'd tidy up my quick and dirty install guide I have on my personal wiki, and post it here in case it helps anybody else.
tar xvzf [path-to-tarball]
cd php-[version]
./configure --prefix=/usr --with-apxs2=/usr/sbin/apxs2 --with-config-file-path=/etc [other config options]
make
su -
# You need a \n, since APXS won't match a LoadModule on line 1
echo "\nLoadModule foo foo.so" > /etc/apache2/httpd2-prefork.conf"
vi /etc/sysconfig/apache2
On the line starting APACHE_MODULES="... php4" change php4 to php5.
sudo make install
# edit httpd2-prefork.conf, and remove the two LoadModule lines
/etc/init.d/apache2 restart
1fd7
# You need a \n, since APXS won't match a LoadModule on line 1<br /> echo "\nLoadModule foo foo.so" > /etc/apache2/httpd2-prefork.conf"<br />
I created the file /etc/apache2/httpd2-prefork.conf neiter an empty file or with the line: "\nLoadModule foo foo.so" (with or without \n and " ) no success in "sudo make install"
I receive only:
apxs:Error: Activation failed for custom /etc/apache2/httpd2-prefork.conf file.. apxs:Error: At least one `LoadModule' directive already has to exist.. make: *** [install-sapi] Error 1