安装joomla到jm.shashawu.org
如果有中文,下中文也可。如果没有中文下载英文
https://www.joomla.org/download.html
第二,解压缩
unzip Joomla_3.6.2-Stable-Full_Package.zip
将目录移动到/alidata/www/下面,并命名为jm.shashawu.org
变更权限 (一定要在/alidata/www下执行)
sudo chown -R www /alidata/www
sudo chgrp -R www /alidata/www
sudo chmod 2775 /alidata/www
find jm.shashawu.org -type d -exec sudo chmod 2775 {} \;
建立数据库
dyname jmshasha
dbuser jmshashau
password jmshasha@P
连接数据库
mysql -u root -p
输入密码 ba3872987e
创建数据库
create database jmshasha;
CREATE USER ‘jmshashau’@’localhost’ IDENTIFIED BY ‘jmshasha@P’;
GRANT ALL PRIVILEGES ON jmshasha.* TO “jmshashau”@”localhost”;
FLUSH PRIVILEGES;
exit
修改httpd.conf
vi /alidata/server/httpd-2.4.10/conf/httpd.conf
在208行附近添加
<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /alidata/www/jm.shashawu.org/
ServerName test.shashawu.org
#AddDefaultCharset utf-8
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
重启httpd服务
service httpd restart
输入
jm.shashawu.org
安装