LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Apache/MySQL/PHP (https://www.linuxquestions.org/questions/linux-software-2/installing-apache-mysql-php-96221/)

triki 09-24-2003 05:06 AM

Installing Apache/MySQL/PHP
 
I just have a quick question....
Do i have to install Apache/MySQL/PHP with the source and compile them individually, or can i just install the rpm's ?
In every tutorial i found it has me compiling the sources, and when i talked to someone in #MySQL on IRC and guy told me to just install the rpm's and everything would be fine...
Is this true ?

Thanks X10000

triki

stoffell 09-24-2003 06:05 AM

installing software
 
hi
you're using rh, right?
if you are, just go out and get apt for red hat systems.
it's a frontend for the rpm package manager.

http://apt.freshrpms.net/

get the apt version for your version, install it after download with:
rpm -ivh apt-0.5.5cnc6-fr1.i386.rpm (example for rh9 apt)

after this, do:
apt-get update

after a while (should be no errors) you can install mysql like this:

apt-get install mysql mysql-server (installs client and server)

that's about it, try it out, and don't forget to read some more on the apt-subject ... try google :)

cheers..

triki 09-24-2003 07:07 AM

Now that answers my question for MySQL, do I do the same for PHP and Apache ? Is that going to compile them to work together ?
Thanks

triki:D

stoffell 09-24-2003 01:28 PM

apt-get it all :)
 
indeed, installing apache and php is quite the same..
just try :
apt-get install php httpd

this installs httpd (the package name for apache in rh)

oh, and if you need access to mysql databases from php, you should also install php-mysql....

after this installing, check your list :
rpm -qa | egrep "php|httpd|sql"

should give you something like :
[root@www3 root]# rpm -qa | egrep "php|httpd|sql"
php-4.2.2-17.2
mysql-server-3.23.56-1.9
httpd-2.0.40-21.5
mysql-3.23.56-1.9
php-mysql-4.2.2-17.2


g'luck..


All times are GMT -5. The time now is 04:44 AM.