PHP install help


Recommended Posts

Hello,

I've recently installed apache2 and mysql and am trying to get php installed, but no such luck so far. I'm running Suse 9.1 and trying to install php 4.3.10

SO I'm in the /home/jj/php-4.3.10 directory and running the command

./configure --with-mysql --with-apache=/usr/local/apache2

and am getting the following error:

configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache2

any ideas?

Link to comment
https://www.neowin.net/forum/topic/301547-php-install-help/
Share on other sites

The Apache 2 packages you need to upgrade are:

apache2-2.0.53-5.1.i586.rpm

apache2-devel-2.0.53-5.1.i586.rpm

libapr0-2.0.53-5.1.i586.rpm

and depending on which you use or have installed previously

apache2-prefork-2.0.53-5.1.i586.rpm

or

apache2-worker-2.0.53-5.1.i586.rpm

From PHP4 packages you'll need:

apache2-mod_php4-4.3.10-10.1.i586.rpm

php4-4.3.10-10.1.i586.rpm

and all the PHP modules you want to use (just install them all).

One note tho'! You cannot use imap and recode PHP modules at the same time, they conflict.

Once you've installed them, run SuSEconfig and restart your Apache2 with rcapache2 restart

And let's see what happens :)

thx for the reply. I downloaded all the above but am getting the following error:

rpm -i apache2-2.0.53-5.1.i586.rpm

> warning: apache2-2.0.53-5.1.i586.rpm: V3 DSA signature: NOKEY, key ID efb694ea

> error: Failed dependencies:

> apache2-MPM is needed by apache2-2.0.53-5.1

> libapr0 = 2.0.53 is needed by apache2-2.0.53-5.1

> libapr-0.so.0 is needed by apache2-2.0.53-5.1

> libaprutil-0.so.0 is needed by apache2-2.0.53-5.1

  drunk7daysaweek said:
thx for the reply.  I downloaded all the above but am getting the following error:

rpm -i apache2-2.0.53-5.1.i586.rpm

> warning: apache2-2.0.53-5.1.i586.rpm: V3 DSA signature: NOKEY, key ID efb694ea

> error: Failed dependencies:

>        apache2-MPM is needed by apache2-2.0.53-5.1

>        libapr0 = 2.0.53 is needed by apache2-2.0.53-5.1

>        libapr-0.so.0 is needed by apache2-2.0.53-5.1

>        libaprutil-0.so.0 is needed by apache2-2.0.53-5.1

585680667[/snapback]

If you've downloaded all of them then you can install them all together.

rpm -ivh *.rpm

Make sure they're in their own directory as the wildcard (*) installs ALL the rpm's in that folder together. I don't know if this command is recommended, but it works for me in some instances.

  DjmUK said:
If you've downloaded all of them then you can install them all together.

rpm -ivh *.rpm

Make sure they're in their own directory as the wildcard (*) installs ALL the rpm's in that folder together. I don't know if this command is recommended, but it works for me in some instances.

585681137[/snapback]

The flags are generally how RPMs are installed. The "RPM GUI Managers" usually pass those same flags when you install an RPM.

I'm still stuck trying to get php installed...

~> rpm -Uvh apache2-2.0.53-5.1.i586.rpm

warning: apache2-2.0.53-5.1.i586.rpm: V3 DSA signature: NOKEY, key ID efb694ea

error: Failed dependencies:

apache2-MPM is needed by apache2-2.0.53-5.1

libapr0 = 2.0.53 is needed by apache2-2.0.53-5.1

libapr-0.so.0 is needed by apache2-2.0.53-5.1

libaprutil-0.so.0 is needed by apache2-2.0.53-5.1

any reason why it wont install? How can I get php up and running?

Doesn't yast resolve deps problems?

Humm this reminded me of the (not so) good old days of compiling from source and deps hunting.

  Quote
but php pages don't work on my local server

Got to edit the httpd.conf and add the php to it

as a module:

LoadModule php4_module "pathtoPHPmodule"

(...)

AddModule mod_php4.c

(...)

AddType application/x-httpd-php .phtml .pwml .php3 .php4 .php .php2 .inc .asp

Edited by LechioPT
  LechioPT said:
Doesn't yast resolve deps problems?

Humm this reminded me of the (not so) good old days of compiling from source and deps hunting.

Got to edit the httpd.conf and add the php  to it

as a module: 

LoadModule php4_module "pathtoPHPmodule"

(...)

AddModule mod_php4.c

585720965[/snapback]

I get the following error:

Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:

Cannot load /usr/local/apache2/libexec/libphp4.so into server: /usr/local/apache2/libexec/libphp4.so: cannot open shared object file: No such file or directory

I have no clue how to use YAST.... can someone pls tell me step by step how to install apache/php/mysql properly? Also how to uninstall them all?

http://httpd.apache.org/docs-2.0/mod/directives.html

This a complete manual with examples.

"pathtoPHPmodule" is typed wrong to give you that error.

If you want it really simple get a bundle with Apache+PHP+MySQL+Other features

There are some that make it easy, available for free download on sites like sourceforge?

Edited by LechioPT

Okay, I installed xampp-linux-1.4.12.tar.gz (lampp) and it seems to be installed fine... now the problem is, the original apache2 that I installed previously is still there and when i type localhost it takes me the the original apache2 rather than the lampp install... how can i correct this?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.