Linux VPS quick manual installation LAMP Zhaorong Tribe

Linux VPS quick manual installation of LAMP

Time: August 21, 2012 Column: VPS Tutorial Author: Zhao Rong Click: 11897 times

 Proprietary computer room/advanced anti DDoS server/advanced anti DDoS VPS/American advanced anti DDoS/Los Angeles VPS/Los Angeles advanced anti DDoS server

The most popular Linux VPS installation environment in the blog is the lnmp one click package of the military brother, which is very simple. According to the official installation tutorial, copy+paste+enter, it is OK, but it lacks some DIY spirit. Today, we will see how to manually and quickly Installing the LAMP Environmental Science. This article is in Myhost123 Phoenix XEN PV product test, operating system is CentOS 5.7 32bit.

 lamp

Upgrade system and install necessary components

 yum -y update yum -y install gcc gcc-c++ autoconf automake libtool libevent libevent-devel gmp gmp-devel yum -y install gd gd-devel freetype freetype-devel fontconfig fontconfig-devel libjpeg libjpeg-devel zlib zlib-devel pcre pcre-devel yum -y install ncurses ncurses-devel libmcrypt mhash

Install Apache and MySQL

 yum -y install mysql mysql-server mysql-devel yum -y install httpd httpd-devel yum -y install php53*

Start Apache and MySQL

/etc/init.d/httpd restart

/etc/init.d/mysqld restart

Edit PHP test files and view PHP information

vi /var/www/html/info.php

Join:

<? php

phpinfo();

?>

After that http://ip/info.php Visit to view php information.

Similarly, you can upload the probe to the/var/www/html/directory and access the probe to view the server information.

After that, set httpd and MySQL to start.

chkconfig httpd on

chkconfig mysqld on

Profile Location

/Etc/my.cnf MySQL configuration file

/Etc/httpd/apache configuration file

/Etc/php.ini php configuration file

other

If you just want to have a quick look at the probe, you can simply install an httpd and php directly. See the command:

yum install httpd php

service httpd start

Put the probe or php test file into/var/www/html/.

 Advanced Defense VPS/Los Angeles Advanced Defense/Advanced Defense Server/20 year old computer room

Statement: Blogs are only for sharing information and are not recommendations. Websites do not participate in transactions and are not intermediaries. The content only represents personal views and is not authoritative. Readers should consider it and take their own risks! Every penny and every commodity is still the eternal truth. Juvenile readers (including physical and psychological) should visit this website with their guardians! This article is written by( Zhao Rong )Original compilation, reprint, please keep the link: Linux VPS quick manual installation of LAMP The code is not easy, please do not copy or paste!
About using: This website mainly shares server and VPS information, and does not provide any product sales or purchase. All visitors please purchase and use products within the scope of national laws and regulations. QQ group discussion: 683851361
About safety: Any IDC has the possibility of going bankrupt and running away. The host line is even more uncontrollable. Monthly payment and backup are your best choices. Please keep good and regular backup habits

Linux VPS quick manual installation of LAMP: currently there are 9 messages

  1. 5F
    Jun Shao :

    I just want to uninstall the environment directory of Apache

    2013-02-01 16:51 [Reply]
  2. 4th floor
    Jun Shao :

    Please tell me how to uninstall all the Apache files

    2013-02-01 16:50 [Reply]
  3. floor
    Laobai :

    Litespeed compatible with apache 😮

    2012-08-21 22:42 [Reply]
  4. Bench
    Host code :

    The god horse used to highlight

    2012-08-21 12:57 [Reply]
    • Zhao Rong :

      Plug in: WP CodeBox, Gaga

      2012-08-21 12:58 [Reply]
      • Looks good
        I use Highlight
        It's almost as long as useless..

        2012-08-21 12:59 [Reply]
        • Zhao Rong :

          In fact, I installed this plug-in early in the morning, but it didn't work. Recently, I have many friends here - writing one - and I have to pay attention to this problem~

          2012-08-21 13:00 [Reply]
  5. Hehe, it seems very simple~In fact, I have never used LAMP... When I contact with such small resource users as LNMP and LLsmp~

    2012-08-21 12:49 [Reply]
    • Zhao Rong :

      Hey hey, I can't use LLsmp. I wanted to write it, but I thought it was troublesome, so I never bothered. Apache is simple, and pseudo static is convenient~

      2012-08-21 12:51 [Reply]

Comment


 hostyun  locvps

Advertise