mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-01-17 04:38:23 +01:00
Page:
Installation on a Web Server
Clone
5
Installation on a Web Server
Sergey Romanenko edited this page 2014-01-14 06:29:40 -08:00
Steps to Install
- Download the latest version.
- Unzip the contents to a new folder on your local computer.
- Upload that whole folder with an FTP client to your host.
- You may also need to recursively CHMOD the folder /storage/, /tmp/, /backups/ and /public/ to 755(or 777) if your host doesn't set it implicitly.
- Also you may also need to recursively CHMOD the /install.php, /.htaccess and /sitemap.xml
to 755(or 777) if your host doesn't set it implicitly. - Type http://example.org/install.php in the browser.
You can install Monstra with Softaculous:
- Login to your host and look for Software/Services
- In Softaculous there is a 'Portals/CMS' Category. Collapse the category and Monstra will be there. Click on it.
- You will see an 'Install' TAB. Click it.
- Fill in the various details and Submit.
- That's it, you are done!
Apache .htaccess for Monstra
#
# Monstra CMS :: php & apache settings
#
# Set default charset utf-8
AddDefaultCharset UTF-8
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag magic_quotes_sybase off
php_flag register_globals off
</IfModule>
# Setting rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Update code bellow for SEO improvements
# RewriteCond %{HTTP_HOST} ^www.example.org [NC]
# RewriteRule ^(.*)$ http://example.org/$1 [R=301,L]
RewriteBase /%siteurlhere%/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
# Update code bellow for SEO improvements
# Redirect 301 /home http://example.org/
</IfModule>
Ngnix config for Monstra
# Monstra config
server {
listen 80;
server_name www.monstra.net monstra.net;
access_log /var/log/nginx/monstra.net_access.log;
error_log /var/log/nginx/monstra.net_error.log;
root /var/www/monstra;
index index.php;
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|txt|js|map)$ {
expires 1d;
}
location / {
rewrite /home / permanent;
rewrite ^/(.+)$ /index.php;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}