Update 'README.md'
This commit is contained in:
parent
b6f8587f4d
commit
7d27e59d4e
33
README.md
33
README.md
|
@ -48,4 +48,35 @@ Fix details laters
|
||||||
curl -s https://api.wordpress.org/secret-key/1.1/salt/
|
curl -s https://api.wordpress.org/secret-key/1.1/salt/
|
||||||
sudo nano /var/www/shop/wp-config.php
|
sudo nano /var/www/shop/wp-config.php
|
||||||
define('FS_METHOD', 'direct');
|
define('FS_METHOD', 'direct');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Apache HTTPS Setup
|
||||||
|
Create PEM files
|
||||||
|
```sh
|
||||||
|
cd /var/www/wp/ssl
|
||||||
|
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
|
||||||
|
```
|
||||||
|
Create apache2 file enter `sudo nano /etc/apache2/sites-available/wp.conf` then Copy+Paste the following then CTRL+X then Y then Enter to save.
|
||||||
|
```
|
||||||
|
<IfModule mod_ssl.c>
|
||||||
|
<VirtualHost _default_:443>
|
||||||
|
ServerName shop.sarimoko.com
|
||||||
|
ServerAdmin travis@sarimoko.com
|
||||||
|
DocumentRoot /var/www/wp/html/
|
||||||
|
SSLEngine on
|
||||||
|
SSLCertificateFile /var/www/wp/ssl/cert.pem
|
||||||
|
SSLCertificateKeyFile /var/www/wp/ssl/key.pem
|
||||||
|
<Directory /var/www/wp/html/>
|
||||||
|
AllowOverride All
|
||||||
|
</Directory>
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
||||||
|
SSLOptions +StdEnvVars
|
||||||
|
</FilesMatch>
|
||||||
|
<Directory /usr/lib/cgi-bin>
|
||||||
|
SSLOptions +StdEnvVars
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue