Permalink
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (60 sloc) 1.97 KB
# Onxshop install on Debian Jessie (see https://onxshop.com/download)
wget -O - https://onxshop.com/debian/conf/signing_key.pub | apt-key add -
echo "deb http://onxshop.com/debian/ jessie main" > /etc/apt/sources.list.d/onxshop.list
apt-get update && apt-get install onxshop-1.7
# Create new project using utils/onxshop.sh script
onxshop-1.7 create test.local.onxshop.com
# Or create new project manually:
cd /srv/
cp -a /opt/onxshop-1.7/project_skeleton/base_with_blog/ ./
mv project_skeleton [HOSTNAME]
cd [HOSTNAME]
chmod a+rwx -R var/
#create symlink to shared onxshop_dir folder
ln -s /opt/onxshop-1.7 onxshop_dir;
# configure [HOSTNAME] vhost
vi /etc/apache2/sites-available/[HOSTNAME].conf
<VirtualHost *:80>
ServerName [HOSTNAME]
VirtualDocumentRoot [PROJECT_DIR]/public_html
</VirtualHost>
a2ensite [HOSTNAME] && service apache2 reload
# create a new database user
sudo su - postgres
createuser -SRdP [NEWUSER]
(choose [NEWPASSWORD])
exit
# create new database under newly created db user
createdb -U [NEWUSER] -h localhost [NEWPROJECT]-1_7
# populate database with project template
psql -U [NEWUSER] -h localhost [NEWPROJECT]-1_7 < onxshop_dir/project_skeleton/base_with_blog.sql
# modify deployment.php
vi conf/deployment.php
/**
* Database connection
*/
define('ONXSHOP_DB_TYPE', 'pgsql');
define('ONXSHOP_DB_USER', '[NEWUSER]');
define('ONXSHOP_DB_PASSWORD', ''[NEWPASSWORD);
define('ONXSHOP_DB_HOST', 'localhost');
define('ONXSHOP_DB_PORT', 5432);
define('ONXSHOP_DB_NAME', '[NEWPROJECT]-1_7');
# Website frontend access:
http://[NEWPROJECT]/
# website admin access:
http://[HOSTNAME]/edit
username: [NEWUSER]
password: [NEWPASSWORD]
In case of any problem, i.e. a blank screen, enable debugging for your client IP address:
vi conf/deployment.php
/**
* Application Debug settings
*
* 0 - No debugging
* 3 - Full debugging
* 5 - Full debugging (direct ouput)
*/
$debug_hosts = array(
'[YOUR_CLIENT_IP_ADDRESS]' => 1
);
And also check /var/log/apache2/error.log