This is a discussion on newbie question about php with apache. within the PHP Language forums, part of the PHP Programming Forums category; Hi, I new to php, and I am using RH9. My question is if I can install php on a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I new to php, and I am using RH9. My question is if I can install php on a preinstalled apache? If I install apache during the RH installation, the apache files are not in a folder like /usr/local/apache2. The conf files are in /etc/httpd/conf and the start/stop file is /etc/rc.d/init.d/httpd. If I install php based on this, it gave me error of missing apx files. So do I have to use the apache tarball file to install it before installing php? Does that mean I'd better skip the apache when I install RH9 next time? Thanks for any help, CZ |
|
|||
|
cz <chong@positioning-research.com> wrote:
> If I install apache during the RH installation, the apache > files are not in a folder like /usr/local/apache2. The conf files > are in /etc/httpd/conf and the start/stop file is /etc/rc.d/init.d/httpd. > > If I install php based on this, it gave me error of missing apx files. > So do I have to use the apache tarball file to install it before > installing php? Does that mean I'd better skip the apache when > I install RH9 next time? So you are using the RH9 bundeled apache but not it's PHP! Since you appear to be a newbie with both RH and PHP either do everything by the book for RH (it's packages) or to an install from source for both. You do know that RedHat9 is ancient? It has already reached end of life long ago, so no updates for either apache or php (or anything else broken). So from source should be the preferred solution if you need (security) updates, even better would be to upgrade to a supported distribution. -- Daniel Tryba |
|
|||
|
Thanks Daniel!
I have a PC with apache installed. There was php but I wanted to play with the new version from the source tarball. That's why I was wondering if I have to reinstall the apache from source as well, i.e, source PHP + RPM Apache. I know Fedora was coming long time ago. But I just didn't update on my old pc with RH9 yet. Thanks for your suggestion. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|