原文: Create a MySQL Computer Engine VM Instance Using Ubuntu in Google Cloud
1. Create Ubuntu VM Instance
2. Change Firewall Settings
3. Install MySQL
Now you should be able to access homepage.
Sometimes, you may be able to access home page, but not able to get into any other links. That is because of permalinks not working.
2. Change Firewall Settings
3. Install MySQL
Connected, host fingerprint: ssh-rsa 2048 13:5D:03:99:0D:A2:B8:FB:8B:2A:DB:51:37:90:C7:5B:00:33:0E:0D:D9:77:E2:BB:EC:04:49:9E:55:F7:83:86
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-1019-gcp x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
0 packages can be updated.
0 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc
define('DB_USER', 'WP_USER');
define('DB_PASSWORD', 'P@ssw0rd');
. . .
define('FS_METHOD', 'direct');
sudo chown -R www-data:www-data /var/www
sudo find /var/www/ -type d -exec chmod 755 {} \;
sudo find /var/www/ -type f -exec chmod 644 {} \;
johnyan_ca@wp-php:/var/www/html$ mv index.html apache.html
Now you should be able to access homepage.
Sometimes, you may be able to access home page, but not able to get into any other links. That is because of permalinks not working.
In newer versions of apache2, you need to enable the module:
加载中,请稍候......
前一篇:
在GCP云端安装T-Pot蜜罐
后一篇:
配置思科无线路由接入点1142N给家里用
< 前一篇
在GCP云端安装T-Pot蜜罐
后一篇 >
配置思科无线路由接入点1142N给家里用