Installing OJS in a Namecheap hosting with Git

Namecheap has became an interesting hosting for developers since it provides Git.

1 First, ask to Namecheap support to enable SSH access. When is enabled, the ssh string access is

ssh -p 21098 user@xxx.xx.xxx.xx
  1. Go to

https://github.com/pkp/ojs

and clone the repository

git clone https://github.com/pkp/ojs.git
  1. Inside the installation folder, run
    git submodule update --init --recursive
    cp config.TEMPLATE.inc.php config.inc.php
  1. Create a folder named files inside installation folder. The path to this folder will be used in the installation wizard

  2. Create a php.ini file inside folder lib/pkp. Inside put the following content

max_execution_time = 300
max_input_time = 300
memory_limit = 512M
suhosin.executor.include.whitelist = phar
detect_unicode = Off
  1. Run the following command to install composer
curl -sS https://getcomposer.org/installer | php -c php.ini
  1. Run the following command to install dependencies through composer
php -c php.ini composer.phar update

If the process is successful, an output like this will appear

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v3.1.4)
    Downloading: 100%         

  - Installing kriswallsmith/assetic (v1.3.2)
    Downloading: 100%         

  - Installing robloach/component-installer (0.2.3)
    Downloading: 100%         

  - Installing components/jquery (1.11.0)
    Downloading: 100%         

  - Installing components/jqueryui (1.11.0)
    Downloading: 100%         

  - Installing oyejorge/less.php (v1.7.0.3)
    Downloading: 100%         

  - Installing phpmailer/phpmailer (v5.2.8)
    Downloading: 100%         

  - Installing smarty/smarty (v2.6.28)
    Downloading: 100%         

  - Installing ezyang/htmlpurifier (v4.6.0)
    Downloading: 100%         

  - Installing tinymce/tinymce (4.1.7)
    Downloading: 100%         

  - Installing ircmaxell/password-compat (v1.0.4)
    Downloading: 100%         

  - Installing michelf/php-markdown (1.5.0)
    Downloading: 100%         

  - Installing sebastian/recursion-context (1.0.2)
    Downloading: 100%         

  - Installing sebastian/exporter (1.2.2)
    Downloading: 100%         

  - Installing sebastian/diff (1.4.1)
    Downloading: 100%         

  - Installing sebastian/comparator (1.2.0)
    Downloading: 100%         

  - Installing symfony/yaml (v3.1.4)
    Downloading: 100%         

  - Installing sebastian/version (1.0.6)
    Downloading: 100%         

  - Installing sebastian/global-state (1.1.1)
    Downloading: 100%         

  - Installing sebastian/environment (1.3.8)
    Downloading: 100%         

  - Installing doctrine/instantiator (1.0.5)
    Downloading: 100%         

  - Installing phpunit/php-text-template (1.2.1)
    Downloading: 100%         

  - Installing phpunit/phpunit-mock-objects (2.3.8)
    Downloading: 100%         

  - Installing phpunit/php-timer (1.0.8)
    Downloading: 100%         

  - Installing phpunit/php-file-iterator (1.4.1)
    Downloading: 100%         

  - Installing phpunit/php-token-stream (1.4.8)
    Downloading: 100%         

  - Installing phpunit/php-code-coverage (2.2.4)
    Downloading: 100%         

  - Installing webmozart/assert (1.1.0)
    Downloading: 100%         

  - Installing phpdocumentor/reflection-common (1.0)
    Downloading: 100%         

  - Installing phpdocumentor/type-resolver (0.2)
    Downloading: 100%         

  - Installing phpdocumentor/reflection-docblock (3.1.1)
    Downloading: 100%         

  - Installing phpspec/prophecy (v1.6.1)
    Downloading: 100%         

  - Installing phpunit/phpunit (4.8.27)
    Downloading: 100%         

  - Installing phpunit/phpunit-selenium (1.4.2)
    Downloading: 100%         

  - Installing moxiecode/plupload (v2.1.9)
    Downloading: 100%         

kriswallsmith/assetic suggests installing twig/twig (Assetic provides the integration with the Twig templating engine)
kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
kriswallsmith/assetic suggests installing patchwork/jsqueeze (Assetic provides the integration with the JSqueeze JavaScript compressor)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files
  1. Go to your wizard installation

http://example/ojs

to continue with the installation. That is all.

Links


Etiquetas