Install Apache, Mysql, PHP in Linux Server

Installing Apache

[root@server ~]# wget http://opensource.become.com/apache/httpd/apache_1.3.41.tar.gz
[root@server ~]# tar zxvf apache_1.3.41.tar.gz
[root@server ~]# cd apache_1.3.41
[root@server ~]#  ./configure –prefix=/usr/local/apache –enable-module=so
[root@server ~]# make
[root@server ~]# make install

Now we have installed apache :) . Let’s start the apache by the following command

[root@server ~]# /usr/local/apache/bin/apachectl start

Installing Mysql

[root@server ~]#  wget http://mysql.llarian.net/Downloads/MySQL-5.1/mysql-5.1.40-linux-i686-glibc23.tar.gz
[root@server ~]# tar zxvf mysql-5.1.40-linux-i686-glibc23.tar.gz
[root@server ~]# mv mysql-5.1.40* mysql
[root@server ~]# mv mysql /usr/local/ mysql
[root@server ~]# cd mysql
[root@server ~]# chown -R mysql .
[root@server ~]‚  chgrp -R mysql .
[root@server ~]# scripts/mysql_install_db –user=mysql
[root@server ~]# chown -R root .
[root@server ~]# chown -R mysql data

Now we can start mysql by the following command
[root@server ~]# bin/mysqld_safe –user=mysql &
Note: Now mysql has not password. To set root password run the following command
[root@server ~]#  bin/mysqladmin -uroot -password ‘NEWPASSWORD’

To Stop mysql server , do the follwing command

[root@server ~]# bin/mysqladmin -uroot -p shutdown

Installing PHP

[root@server ~]# wget http://in.php.net/distributions/php-5.3.0.tar.gz
[root@server ~]# tar zxvf php-5.3.0.tar.gz
[root@server ~]# cd php-5.3.0
[root@server ~]# ./configure –with-apxs=/usr/local/apache/bin/apxs –with-gd –with-zlib-dir –with-jpeg-dir –with-png-dir –with-freetype-dir –enable-gd-native-ttf –with-freetype2-dir –with-ttf –with-mysql=/usr/local/mysql –with-mysqli=/usr/bin/mysql_config –with-curl –disable-soap –with-openssl –with-xmlrpc –enable-ftp –with-xsl

********if configure error do install the following pakages******

yum install flex
yum install libxml2 libxml2-dev
yum install ‘openssl*’
yum install openssl
yum install libopenssl*
yum install openssl*
yum install libjpeg*
yum install libpng*
yum install libfreetype*
yum install libxslt-dev
if Package libxslt-dev has no installation candidate then
yum install libxslt1-dev

***************

[root@server ~]# make
[root@server ~]# make install

Now we have installed php. We need to‚  load php in apache configuration file. To do it add the following line in /usr/local/apache/conf/httpd.conf

AddType application/x-httpd-php .php .php3 .wml .html

You can leave a response, or trackback from your own site.

One Response to “Install Apache, Mysql, PHP in Linux Server”

  1. It’s extra easy to browse the collection of words inside a website instantly related to figuring out on the theory concept of your business. Make your on-line content material subject material website basically based totally subject material with no less than 2 hundred phrases of transparent agricultural information products and services of your property and businesses. It will lend a hand once in a while to make it imaginable on your consumers to understand just a little roughly approximately you and then they’d most likely require information about goods. Along with the verbal description, I may just use the options of Internet devices to emphasize your point.

Leave a Reply

Subscribe without commenting


Fatal error: Call to undefined function wp_list_addonn() in /home/hellosys/public_html/wp-content/themes/Grante/sidebar.php on line 106