Server Setup & Installation Instructions - aheath05/pythoncms.com GitHub Wiki
#Setting up a linux server and installing the PythonCMS
Software used - Software will be assumed already install, this is just what this documentation worked off of.
- Oracle’s VirtualBox 4.3.20 for Windows hosts
- Ubuntu 14.10 Desktop (64-bit)
Server Setup
-
You want to make sure you have a LAMP server installed.
- Press
CTRL+ALT+T
to open the command line. - Make sure tasksel is installed / install taskel then run it.
sudo apt-get install tasksel sudo tasksel
- Select the LAMP server (Use the arrow keys to scroll up and down, the space bar to select). Hit enter once selected and follow any instructions.
- Press
-
Enable mod_rewrite and cgi
sudo a2enmod rewrite
sudo a2enmod cgi
sudo service apache2 restart
-
Setup apache to direct to your website
- Navigate to
/etc/apache2/sites-available
then copy the default conf to one for the new website and open it up.
sudo cp 000-default.conf 001-name of website directory.conf sudo nano 001-name of website directory.conf
*Change the contents to resemble the following
DocumentRoot /var/www/website directory ServerName domain.extension ServerAlias www.domain.extension <Directory /var/www/website directory> Options Indexes FollowSymLinks ExecCGI AddHandler cgi-script .py AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/name of website directory.error.log CustomLog ${APACHE_LOG_DIR}/name of website directory.access.log combined
- Save the file,
CTRL+X > Y > Enter
to save - Enable the website
sudo a2ensite 001-name of website directory.conf sudo service apache2 restart
- Navigate to
/etc
then open up the hosts file
sudo nano hosts
- Add the address of your website and domain
ip address domain.extension ``` * `CTRL+X > Y > Enter` to save
- Navigate to
-
Install the PythonCMS
- Move the
PythonCMS.zip
file to/var/www/
sudo mv PythonCMS.zip /var/www
- Unzip the package
sudo unzip PythonCMS.zip
- Rename the
PythonCMS
folder to the same name used for theDocumentRoot
in the001-name of website directory.conf
. - Make sure permission are correct
sudo chmod -R a+x name of directory
- Test the CMS out by navigating to the domain name in your browser. If you are confident it works you may delete the
PythonCMS.zip
file and continue to create your website using the PythonCMS tool.
- Move the
Enjoy!