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

    • NWinfo 1.4.2 by Razvan Serea NWinfo is a lightweight tool designed to give a quick look at your computer's key details, from hardware to software specs, without any fuss. You don't need to install it; just download, run, and see everything you need on one screen. It displays essential info about your CPU, memory, disk drives, network, and even the system's operating details. Since it’s portable, you can carry NWinfo on a USB stick and use it on any Windows machine, making it a handy tool for both tech enthusiasts and troubleshooting. NWinfo key features: Lightweight and portable—no installation required Simple, user-friendly interface for easy navigation Displays detailed CPU information, including model and speed Shows memory (RAM) specifications and usage Provides disk information, including storage capacity and usage Lists network adapters and IP addresses Displays motherboard details, including model and manufacturer Shows system uptime and operating system version Detects graphics card information and driver details Includes battery status for laptops Provides monitor specifications, including resolution and refresh rate Displays BIOS version and other firmware details Offers a summary of active processes and services Generates detailed logs for sharing or troubleshooting Open-source and free, allowing for customization and community support NWinfo 1.4.2 changelog: Add Polish language support Add support for EFI key options Refactor EFI boot menu enumeration Add FACS table parsing Add SMBIOS support for types 37-39 and 42 Note: NWinfo might trigger a few antivirus alerts or show up with warnings on VirusTotal due to its low download frequency. If you have any concerns, you're welcome to review the full source code available on the developer’s repository. Download: NWinfo 1.4.2 | 2.2 MB (Open Source) View: NWinfo Website | NWinfo@GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • TSMC's trade secret meltdown exposed by internal monitoring by Paul Hill Taiwan Semiconductor Manufacturing Co. (TSMC) has detected unauthorized activities using “comprehensive and robust monitoring mechanisms”. The chip maker said that it believes trade secrets have been leaked as a result and has taken disciplinary action against the personnel involved and initiated legal proceedings explaining that it has a zero-tolerance policy for compromising trade secrets or harming company interests. As the case is under judicial review, it is unable to provide further details about the case. While TSMC is not speaking on the matter, the leak allegedly involves critical proprietary information on 2-nanometer chip development and production. Production of the 2-nanometer chip is among the leading-edge manufacturing processes in the semiconductor industry right now, which explains why an actor would want to steal related information. TSMC is one of the world’s leading chip makers, with companies like Apple and Nvidia being among its clients. It is also the world’s biggest chip maker and among the most advanced. After this leak, the company has reaffirmed its commitment to safeguarding its core business competitiveness and the shared interests of all its employees. The jury is still out on the motivations behind the leaking of the trade secrets, but those involved have been fired, according to Nikkei. TSMC, similarly to Nvidia, has found itself in the geopolitical struggle between China and the US in recent years. As you likely know, the last several years have seen America really go hard after Huawei over national security concerns, and in more recent years, the US has sought to limit China’s access to AI hardware. Earlier this year, Neowin reported that TSMC faces a $1 billion fine for breaching export controls against Huawei. TSMC had made a chip for the Chinese firm Sophgo, but that same chip was later discovered to be used in Huawei's high-end Ascend 910B AI processor. This discovery was made by TechInsights, a Canadian company, and as a result, TSMC stopped shipments to Sophgo, and the US added Sophgo to its blacklist to prevent further circumvention along that route. It will certainly be fascinating to learn more about the motivation for the theft of trade secrets as more information comes to light. Via: CNBC | Image via Depositphotos.com
    • Apple will probably reciprocate by advertising their home products and mocking Google Home's continued debacles.
    • Files still rely on classic windows indexing rather than methods that 'everything' uses. So search is suboptimal. The compression algorithm list is really lacking not comparable to winrar, 7zip and peazip... The gui looks nice, but windhawk is a thing. I don't understand what files brings in 2025. Just a less efficient, less customizable file explorer. https://i.imgur.com/afVKXBj.png
  • Recent Achievements

    • Week One Done
      Zojaji earned a badge
      Week One Done
    • First Post
      Soeaker4thedead earned a badge
      First Post
    • First Post
      kryptickid earned a badge
      First Post
    • First Post
      Nemesis-IV earned a badge
      First Post
    • First Post
      Aidan Helfrich earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      759
    2. 2
      ATLien_0
      187
    3. 3
      +FloatingFatMan
      151
    4. 4
      Xenon
      117
    5. 5
      wakjak
      113
  • Tell a friend

    Love Neowin? Tell a friend!