Last update at :2024-05-12,Edit by888u
This VPS novice tutorial introduces: One-click installation of the LAMP environment, which facilitates everyone to quickly set up the environment and start the website building operation. Previously, we introduced the one-click script of "vestacp.com" to quickly build the LNMP or LAMP environment. Reference: "VPS Beginner's Tutorial: One-Click Installation of LNMP/LAMP/LANMP Environment Vestacp?" Today we are using the LAMP script written by Teddy.
System requirements
- System support: CentOS/Redhat/Debian/Ubuntu
- Memory requirements: ≥ 512M
- Hard disk requirements: 2GB or more of remaining space (full package installation requires at least 10GB or more temporary space)
- The server must be configured with software sources and be able to connect to the external network
- Must have system root permissions
- It is recommended to use a clean system for a fresh installation
Support components
- Supports almost all components that come with PHP
- Supports MySQL, MariaDB, SQLite database
- Support redis (optional installation)
- Supports XCache (optional installation)
- Support memcached (optional installation)
- Supports ImageMagick (optional installation)
- Supports GraphicsMagick (optional installation)
- Support ZendGuardLoader (optional installation)
- Supports ionCube PHP Loader (optional installation)
- Self-service upgrade of Apache, PHP, phpMyAdmin, MySQL/MariaDB to the latest version
- Add virtual host via command line, easy to operate
- Supports one-click uninstall
Installation steps
Note: Do not copy and enter the content after the double slash //
yum -y install wget screen unzip // for CentOS/Redhat System apt-get -y install wget screen unzip // for Debian/Ubuntu System screen -S lamp
wget -O lamp.zip https://github.com/teddysun/lamp/archive/master.zip unzip lamp.zip cd lamp-master/ chmod +x *.sh
./lamp.sh
Component installation
All components supported by this script can be optionally installed in the script interaction.
Usage Tips
lamp add(del,list) creates (delete, list) a virtual host.
How to uninstall
./uninstall.sh
Program Directory
- MySQL installation directory: /usr/local/mysql
- MySQL database directory: /usr/local/mysql/data (default, the path can be changed during installation)
- MariaDB installation directory: /usr/local/mariadb
- MariaDB database directory: /usr/local/mariadb/data (default, the path can be changed during installation)
- PHP installation directory: /usr/local/php
- Apache installation directory: /usr/local/apache
Command List
- MySQL or MariaDB commands
/etc/init.d/mysqld(start|stop|restart|status)
- Apache commands
/etc/init.d/httpd(start|stop|restart|status)
- Memcached command (optional installation)
/etc/init.d/memcached (start|stop|restart|status)
- Redis command (optional installation)
/etc/init.d/redis-server (start|stop|restart|status)
Website root directory
Default website root directory: /data/www/default
Script related information:
Author's blog: https://teddysun.com
Change log: https://lamp.sh/changelog.html
Script download: https://github.com/teddysun/lamp/archive/master.zip
Recommended site searches: Chinese international domain names, Guangdong website registration ICP registration center, domain name purchase, US virtual host purchase, US ASP space, Guangzhou server, how to register a domain name, which Hong Kong server is the fastest, app server rental,
p>
发表评论