Updated about 9 years ago by Jessie Lee
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; CREATE DATABASE IF NOT EXISTS resourcespace; GRANT ALL PRIVILEGES ON resourcespace.* TO 'username'@'localhost' IDENTIFIED BY 'password';
<IfModule mod_ssl.c> <VirtualHost *:443> ServerName cloud.example.org ServerAdmin webmaster@localhost DocumentRoot /var/www/resourcespace <Directory /var/www/resourcespace> AllowOverride All Options Indexes FollowSymLinks MultiViews Order allow,deny allow from all </Directory> <Directory /var/www/resourcespace/filestore> Options -Indexes AllowOverride All Order allow,deny allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/resourcespace.error.log CustomLog ${APACHE_LOG_DIR}/resourcespace.access.log combined SSLCertificateFile /path/to/cert.pem SSLCertificateKeyFile /path/to/key.key Include /etc/letsencrypt/options-ssl-apache.conf Header always add Strict-Transport-Security "max-age=15768000" </VirtualHost>
<ifModule mod_authz_core.c> Require all denied </ifModule> # line below if for Apache 2.2 <ifModule !mod_authz_core.c> deny from all Satisfy All </ifModule> # section for Apache 2.2 and 2.4 IndexIgnore *
<IfModule mod_php5.c> php_value SecFilterEngine off php_value SecFilterScanPOST off php_value memory_limit 512M php_value post_max_size 100M php_value upload_max_filesize 100M php_value short_open_tag off </IfModule>
$email_from = ''; $email_notify = ''; $use_smtp=true; $smtp_secure='tls'; $smtp_host=''; $smtp_port=587; $smtp_auth=true; $smtp_username=''; $smtp_password=''; $use_phpmailer=true;