Last update at :2024-06-27,Edit by888u
General VPS users generally use one-click installation packages and WEB management panels. Among the one-click installation packages, LAMP and LNMP are commonly used. On the Internet, we have seen various bloggers and VPS enthusiasts sharing LAMP environment packages, so Husnail asked @水清流 to sort out the first version from the original LLSMP architecture environment, based on CENTOS 5 and 6 (32 /64-bit) environment package is now being shared in public testing.
In this article, Snail shares the first version of the LAMP environment package installation process and website building process. If interested friends can test it, they can give suggestions and opinions on this environment package for future modifications and Complete.
The tutorial on LAMP environment installation that I wrote before
Complete Debian7 configuration LAMP (Apache/MySQL/PHP) environment and website building
Completely configure CentOS6 installation LAMP (Apache/MySQL/PHP) environment building tutorial
First, installation of LAMP one-click package environment
Currently this environment package is based on CENTOS 5 or 6 32 or 64-bit system.
wget https://soft.laozuo.org/lamp/lamp_centos1.0.tar.gztar zxvf lamp_centos1.0.tar.gzcd centossh install.sh
Enter the above command to install the package and press Enter, then enter the MYSQL password we need to set.
The installation environment is PHP5.4, and the default MYSQL password is admin123. We can set the default ROOT permission password ourselves.
The above is the interface after successful installation.
Second, use the LAMP environment to add domain names and build sites
sh /root/lamp/vhost.sh -i youripaddress
When adding a site, use the above command, and replace the red youripaddress with the IP address of our VPS.
After adding it, our website directory will be in the domain name folder corresponding to var/www/.
Finally, we can use SFTP or the sh /root/lamp/vsftpd.sh command to add the FTP user management website file. The default directory of the database is managed at http://ipaddress/phpmyadmin. We can also modify the default database path.
Recommended site search: Mainland China linux host, foreign server rental price, free virtual host application, Hong Kong space, which server is cheaper, registered domain name, network server, Hengchuang host, American independent host, free second-level domain name application, < /p>
发表评论