- lanmp的环境集成软件有wdcp,这款有后台管理界面可以使用比较直观
wdcp后台--》站点添加下绑定域名--》添加mysql账户--》添加ftp账户--》本地ftp软件添加刚刚的ftp账户上传WordPress站点资料--》域名解析到服务器的ip上--》解析生效后访问安装; - ssh远程到Linux命令行添加(都是yum安装方式)mkdir /var/www/html/test.comchown apache:apache /var/www/html/test.comecho "NameVirtualHost *:80">>/etc/httpd/conf/httpd.confsed -i 's/AllowOverride None/AllowOverride ALL/g' /etc/httpd/conf/httpd.conf
vi /etc/httpd/conf/httpd.conf 尾部添加ServerAdmin webmaster@dummy-host.example.com DocumentRoot /var/www/html/test.com ServerName test.com ErrorLog logs/test.com-error_log CustomLog logs/test.com-access_log common
/etc/init.d/httpd restart
创建数据库
mysql -u root -p
create database testcom;
grant all privileges on testcom.* to 'testcom'@'localhost' identified by 'testcomD';
flush privileges;
quit
然后上传WordPress到/var/www/html/test.com
域名解析生效后访问安装。