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.
  • Posts

    • Burrrrn. Bought COD WWII last month when it was on sale for PC. Oh well. Excellent game tho, and the PC version plays/looks amazing (and has it's own PC achievements). ...wondering if this is a lesson on waiting on sales. ...also hoping Rise of the Tomb Raider has it's own PC Achievements
    • Google Chrome 137.0.7151.120 (offline installer) by Razvan Serea The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store. Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features. Important to know! The offline installer links do not include the automatic update feature. Google Chrome 137.0.7151.120 changelog: [$7000][420697404] High CVE-2025-6191: Integer overflow in V8. Reported by Shaheen Fazim on 2025-05-27 [$4000][421471016] High CVE-2025-6192: Use after free in Profiler. Reported by Chaoyuan Peng (@ret2happy) on 2025-05-31 [425443272] Various fixes from internal audits, fuzzing and other initiatives Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware Download: Google Chrome Offline Installer 64-bit | 128.0 MB Download: Google Chrome Offline Installer 32-bit | 115.0 MB Download page: Google Chrome Portable Download: Google Chrome MSI Installers for Windows (automatic update) View: Chrome Website | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • -Drop the art style, it's cool but doesn't fit the franchise at all. -Make it a gritty single player game, like Halo -Include deathmatch and all that stuff, extraction can be a separate mode If they don't do that, it's dead on arrival IMO.
  • Recent Achievements

    • One Month Later
      Custom Greek Shirts earned a badge
      One Month Later
    • Week One Done
      Custom Greek Shirts earned a badge
      Week One Done
    • One Year In
      Custom Greek Shirts earned a badge
      One Year In
    • Week One Done
      topantidetectbrowser earned a badge
      Week One Done
    • Explorer
      Jdoe25 went up a rank
      Explorer
  • Popular Contributors

    1. 1
      +primortal
      672
    2. 2
      ATLien_0
      281
    3. 3
      Michael Scrip
      223
    4. 4
      +FloatingFatMan
      190
    5. 5
      Steven P.
      145
  • Tell a friend

    Love Neowin? Tell a friend!