Skip to content

Instantly share code, notes, and snippets.

@shinesoftware
Last active January 4, 2016 08:00
Show Gist options
  • Save shinesoftware/54b911c1d8b0588473b3 to your computer and use it in GitHub Desktop.
Save shinesoftware/54b911c1d8b0588473b3 to your computer and use it in GitHub Desktop.
Installing and Developing ShineISP 2.0
These are the steps to install ShineISP 2 written by Zend Framework 2.5.1
First of all you have to clone the Zend Framework Skeleton Application where ShineISP modules will be installed.
Check if the composer tool has been already installed in your pc.
Open a shell window and you have to execute this shell command:
$ composer create-project --stability="dev" zendframework/skeleton-application /var/www/PROJECT-FOLDER
we have to wait the end of the creation of the Zend Framework Skeleton project. Then we will read this question:
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]?
type "n" and press enter.
We have to add the repositories url within our composer.json file
"repositories": [
{
"type": "vcs",
"url": "https://github.com/shineisp/Core"
},
{
"type": "vcs",
"url": "https://github.com/shineisp/Base"
},
{
"type": "vcs",
"url": "https://github.com/shineisp/Admin"
}
],
Now we have to add the require section:
"require": {
"php": ">=5.5",
"zendframework/zendframework": "~2.5",
"shineisp/shineisp-core": "dev-master"
}
we have to execute the shell command:
$ composer update
Now we have to tell to our Apache webserver that we have a new site called shineisp.it (the tld could be changed properly as you like)
Open the /etc/hosts file and type:
127.0.0.1 shineisp.it www.shineisp.it
Create a new file by your preferite text editor I am using the "nano":
sudo nano /etc/apache2/sites-available/shineisp.conf
and paste this text:
<VirtualHost *:80>
ServerName shineisp.it
ServerAlias www.shineisp.it
DocumentRoot /var/www/PROJECT-FOLDER/public
SetEnv APPLICATION_ENV "development"
<Directory /var/www/PROJECT-FOLDER/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
and then enable the website configuration by this shell command:
sudo a2ensite shineisp
and reload the Apache configuration by this shell command:
service apache2 reload
Now open your preferite browser and type: http://www.shineisp.it/ you will see the standard Zend Framework page!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment