One-click LAMP yum installation script in CentOS

Source: Internet
Author: User
Tags ioncube

One-click LAMP yum installation script in CentOS

Applicable environment:

  • Supported systems: CentOS/Redhat/Fedora
  • Memory Requirements: ≥ 64 M
  • Hard Disk requirements: 2 GB or more remaining space
  • The software source and Internet connection must be configured on the server.
  • Must have system root permission
  • We recommend that you use a clean system for completely new installation.
  • Date: January 1, June 25, 2014

About this script:

  • One-click yum installation of all software packages for easy upgrade;
  • Supports all built-in PHP components;
  • Supports MySQL and MariaDB databases;
  • Supports XCache;
  • Supports Zend Guard Loader;
  • Supports ionCube PHP Loader;
  • You can upgrade phpMyAdmin on your own;
  • The command line adds a VM, which is easy to operate;
  • One-click uninstallation (note the backup data before uninstallation ).

Will install:

  • 1. Apache
  • 2. MySQL 5.5 latest version or MariaDB 5.5 latest version (either)
  • 3. PHP 5.4 latest version
  • 4. phpMyAdmin latest version
  • 5. xcache
  • 6. ZendGuardLoader
  • 7. ionCube PHP Loader

How to install:
Step 1: Download, decompress, and grant the execution permission:

wget --no-check-certificate https://github.com/teddysun/lamp-yum/archive/master.zip -O lamp-yum.zipunzip lamp-yum.zipcd lamp-yum-master/chmod +x *.sh

Step 2: Install the LAMP one-key installation package
Enter the following command in the terminal:

./lamp.sh 2>&1 | tee lamp.log

TIPS:
Lamp add (del, list): Creates (deletes, lists) virtual hosts.
Lamp uninstall: one-click LAMP deletion (remember to back up data before deleting it !)

Program directory:
MySQL or MariaDB database Directory:/var/lib/mysql
Default website root directory:/data/www/default

Command Overview:
MySQL or MariaDB command:

/etc/init.d/mysqld(start|stop|restart|reload|status)service mysqld(start|stop|restart|reload|status)

Apache command:

/etc/init.d/httpd(start|stop|restart|reload|status)service httpd(start|stop|restart|reload|status) 

For more information or download the installation package, see the project home page: https://github.com/teddysun/lamp-yum

Description of this script:
1. Apache is the default version. MySQL, MariaDB, and PHP are the latest version of Atomic repository.
2. If your VPS memory is greater than or equal to 256 MB, we recommend that you compile and install LAMP. For details, refer:
3. Upgrade phpMyAdmin command:./update_phpmyadmin.sh

Update log:

Update (March June 25, 2014): added the MariaDB Installation option. added the update_phpmyadmin.sh one-click script to upgrade phpMyAdmin.
Update (March June 10, 2014): Install the one-click installation package for LAMP production environment using yum.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.