#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    102
    Rep Power
    15
    I have never tried to get php3 to work on my home Linux PC until now. I am running Redhat Linux 6.1. Apache and PHP3 are both installed, but I don't think that they are configured by default. I haven't been able to find any information on-line specifically for this setup. Can someone please help me out here or point me in the right direction?

    Thanks in Advance!
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    1
    Rep Power
    0
    So as not to run the risk of sounding like another "RTFM" zealot, let me preface with this: I recently ran across the same experience, and am also fairly new to Linux.

    The biggest help that I found however, was in the PHP documentation. After extracting PHP-3.0.15.tar.gz into PHP-3.0.15 folder, and entering that folder, there is a document entitled "INSTALL.REDHAT". This document alone was the single biggest help in installing PHP3.

    Anyway, hope this helps.

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    38
    Rep Power
    15
    one other thing that you might want to be sure of is that, if you downloaded a newer version of apache and installed it, unless you installed over the prevois installation, then the web server that it is running might be the old one (non-configured for php). If it is a newer one, search for apachectl and run it and see if that's the one you want...
    i know that redhat does install a web server by default.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    102
    Rep Power
    15
    I chose to install both Apache and PHP during the initial installation. I guess I am wondering how I am supposed to configure them from there. I don't think that I have to download and reinstall any of these do I? I must be going about it the wrong way then, because I figured that since they were already installed I only needed to edit some configuration files.

    I am very new to Apache and don't know much about getting it up and running.

    Thanks Again...
  8. #5
  9. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Don't install them with RPM. If you want them to give you the most flexibility, try to compile it from source.
    Compile apache first, then php and mention --with-apxs=/usr/local/apache/bin/apxs, then you should get libphp3.so or libphp4.so modules in the libexec directory under your apache root.
    In most case, you should install RPM to save some time. For apache, it's not the case.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    43
    Rep Power
    15
    Compiling is the way to go.

    Dont forget after compiling both beasts, to go into the httpd.conf file and enable PHP3 handling!

    After this, create a quickie php program with the contents:

    <?php
    phpinfo();
    ?>

    This should give you a really good status information on PHP. Happy coding.


    ------------------
    PHP, Perl, SQL Programming at http://www.mentalobjects.com

Similar Threads

  1. RedHat 6.1
    By rbruss in forum Linux Help
    Replies: 2
    Last Post: September 18th, 2003, 04:25 AM
  2. newbie help: redhat 7.3 , sshd , linksys firewall
    By stankOnIt in forum Linux Help
    Replies: 1
    Last Post: November 6th, 2002, 03:43 PM
  3. Redhat Linux 6.1 internet problems
    By Epsilon in forum Linux Help
    Replies: 6
    Last Post: March 1st, 2002, 06:59 AM
  4. How 2 install MySQL and PHP3 on Linux 6.1
    By eduany in forum PHP Development
    Replies: 1
    Last Post: March 15th, 2000, 08:23 AM
  5. MySQL + Redhat 6.0 + php3 + apache
    By mkleong in forum MySQL Help
    Replies: 3
    Last Post: January 28th, 2000, 08:16 AM

IMN logo majestic logo threadwatch logo seochat tools logo