First of all, I'm to new to Unix/Linux and Apache. Please don't get mad if I sound stupid 🙂.

I am trying to install PHP and mySQL on Red Hat 7 server. Red Hat comes with Apache installed so I can't configure it with the
"--activate-module=src/modules/php4/libphp4.a " command. I don't think Apache can with php installed, but I'm not sure. I can't get test.php, test.php3, or test.php4 to run correctly.

I believe that my httpd.conf is configured correctly. I don't have an AddModule for php, but I don't have any php modules in the module folder (the default IS /etc/httpd//modules isn't it?)

I installed the RPMs mod_php-e.0.epl1-10.arvin.i586.rpm and php-4.0.4pl1-10.arvin.i586.rpm

There is still no php module in the module folder. Is all I need to do upload the mod_php.so or whatever it is in that folder? I have been looking for where to download it and I didn't find anywhere.

Any help would be greatly appreciated.

    i just did another install on redhat 7 a couple of hours ago. its simple.

    1) download and install the 4 mysql rpms from the mysql web site.

    2) following the instructions at the end of the mysql rpm installation to configure the password for the mysql root account.

    3) install the apache-devel rpm for apache from the redhat cd or the redhat web site.

    4) download the php source from the php.net web site. try installing php with the following options: "./configure --with-apxs --with-mysql --with-gd --with-imagick --with-jpeg-dir --with-png-dir" then of course "make;make install;"

    5) restart apache, run "/etc/rc.d/rc3.d/S85httpd restart"

      Thanks

      I ended up trying to do something similar to that, but ended up with an error, so I just completely reinstalled red hat with php/mysql installed with it (i backed it all up, and im not getting many visitors anyway) and im just finishing...I'll let you know if it works

      If it doesn't, I'll try what you did 🙂

      Thanks again

        17 days later

        Wow! That worked perfectly. Thanks.

          Write a Reply...