Click to See Complete Forum and Search --> : Apache, php, mysql 101


apwalton
09-16-2003, 07:34 PM
I want to installe apache, php, and mysql on my local machine. I have Redhat 9 and I'm not sure what was instaled with it. There seems to be a lot of files related to apache already. How do I tell if Apache has already been installed? Any tips for newbies for installation and configuration?

blizz
09-16-2003, 08:05 PM
Redhat provides several different installs on there cd's. Personal Desktop, Workstation, Server and more.

If you selected server for installation type your system will function as a Linux-based server.

You would then select any packages to install during installation. Web, Mysql etc...

To find out if you have Apache installed, as root try running the command "service httpd status". If it says "apache is stopped", or something similar then you have it installed. If "service httpd status" says "httpd: no such service" (or something similar), then you don't have apache installed.

Best tip I could give you is to start here ->
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/

mairving
09-17-2003, 08:14 AM
Never met a pre-compiled Apache that I ever liked. I very rarely install Apache, MySQL and PHP upon initial install of the OS. It is just that there are so many options that are not default ones that need to be compiled in. I think RedHat 9.0 also uses Apache 2.0, which is still buggy with PHP 4.3.

apwalton
09-19-2003, 01:38 PM
I tried this but bash didn't recognize "service" as a command.

ikellen
09-20-2003, 12:17 AM
After experimenting alot with setting up a linux webserver, I find it is much better to install Apache, PHP and MySQL from source. Apache especially, as there are tons of options which most people want that arent included in the RPM or if installed with the OS. I also like to keep all my apps under on directory, i.e:

/usr/local/Apache
/usr/local/php
/usr/local/mysql

This way you aren't digging all over the filesystem for that one log or config file.