The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Setting Up PHP 5 Under Suse 9.1

2 replies on 1 page. Most recent reply: Dec 22, 2004 2:47 AM by Michael Engel

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Jon Wood

Posts: 10
Nickname: jellybob
Registered: Sep, 2004

Jon Wood is a freelance PHP developer.
Setting Up PHP 5 Under Suse 9.1 Posted: Sep 14, 2004 8:35 AM
Reply to this message Reply

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.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Jon Wood
Latest Posts From Jon's Ramblings

Advertisement

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.

Download the current version of PHP5 from http://www.php.net/downloads.php#v5
Run the following sequence of commands:

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

Read: Setting Up PHP 5 Under Suse 9.1


Michael Engel

Posts: 2
Nickname: ymengel
Registered: Dec, 2004

Re: Setting Up PHP 5 Under Suse 9.1 Posted: Dec 22, 2004 2:11 AM
Reply to this message Reply
I have not succeeded in doing the step:

# 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


Please consult.
Thanks,
Michael

Michael Engel

Posts: 2
Nickname: ymengel
Registered: Dec, 2004

Re: Setting Up PHP 5 Under Suse 9.1 Posted: Dec 22, 2004 2:47 AM
Reply to this message Reply
Sorry - it is ok now.
The "su -" was in bash and I changed to "csh"
and "make install" worked.

Michael

Flat View: This topic has 2 replies on 1 page
Topic: PHP Installation is too complex Previous Topic   Next Topic Topic: Google Suggest news Roundup

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use