#1
  1. No Profile Picture
    tobymiller
    Guest
    Devshed Newbie (0 - 499 posts)
    I have a Linux server and want to install PHP on it. Do I have to reinstall Apache and PHP together? Or can't I just install PHP by itself. The documentation on this always refers to a new install like I don't yet have Apache installed, but I do. Any help is appreciated.

    Thanks,
    Toby
  2. #2
  3. No Profile Picture
    rycamor
    Guest
    Devshed Newbie (0 - 499 posts)
    If Apache was set up to use DSO, which is the most common way to set up Apache now, then you can use mod_php and be on your merry way.

    Read the INSTALL.DSO file that comes with PHP for more info.
  4. #3
  5. No Profile Picture
    wowzer
    Guest
    Devshed Newbie (0 - 499 posts)
    I didn't see a install.dso in the php archive, but here's a link on how to install it:
    http://www.devshed.com/Server_Side/Administration/Database/page5.html

    I'm planning on compiling it and installing it from the RPM, but I do have a question on apxs and regex.. What are these??? Are the apxs supposed to be where the .so files for apache are?

    ./configure --with-apxs=/usr/local/apache/bin/apxs
    --with-config-file-path=/etc/httpd
    --with-mysql
    --with-system-regex

  6. #4
  7. No Profile Picture
    tobymiller
    Guest
    Devshed Newbie (0 - 499 posts)
    I tried the DSO install and it seems to go through fine, but there seems to be a problem with mySQL during the install. Does anyone have any suggestions for me?

    I am installing it like this:

    ./configure --with-apxs=/usr/sbin/apxs
    --with-config-file-path=/etc/httpd
    --with-mysql=/usr/bin/
    --with-system-regex

    But in the very last line I am getting an error that it can't find mysql.h in /usr/bin/. I know that mysql is in /usr/bin/, but there is not a mysql.h file anywhere that I can find. Am I suppose to be bundling this install with mySQL? I'm starting to get frustrated with this. If I can't get PHP to work with mySQL it won't be as useful to me as I would like.

    Thanks,
    Toby
  8. #5
  9. No Profile Picture
    rycamor
    Guest
    Devshed Newbie (0 - 499 posts)
    I had the same problem a couple of times, and yes, you simply need to find the mysql.h file and put it in /usr/bin.

    How did you install MySQL? Did you use the RPM, or the compilable source download?

    You might want to download the source and look for mysql.h
  10. #6
  11. No Profile Picture
    jpenix
    Guest
    Devshed Newbie (0 - 499 posts)
    Yeah, the MySQL RPMs throw stuff in all kinds of weird places.

    Your best bet is to uninstall the RPMs, download the MySQL source archive and follow its instructions to get it installed (usually in /usr/local/mysql).

    Then you can do your PHP config just like you were (except for different MySQL path) and it should work just fine.

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. Installing PHP package with MSSQL - Setup Q's
    By AmbigiousOp in forum PHP Development
    Replies: 0
    Last Post: January 29th, 2004, 08:52 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  4. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM
  5. Detailed steps on installing php on Apache2
    By summer00 in forum PHP Development
    Replies: 0
    Last Post: January 8th, 2004, 08:50 AM

IMN logo majestic logo threadwatch logo seochat tools logo