- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5
 
Installation from source
Clone this repository:
$ git clone [email protected]:nikrou/phyxo.gitInstall composer following instruction on composer documentation. I supposed you have installed composer globally or in your path.
Go in the directory created (phyxo) and retrieve dependencies:
$ composer installCreate mandatory directories:
$ mkdir var upload plugins _dataAnd give appropriate permissions to var, upload, plugins, themes, language, for the user (apache, www-data, ...) who will serve pages:
$ sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx var upload plugins themes language _data local
$ sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx var upload plugins themes language _data localIf do not have setfacl command, with debian you just install it with:
# apt install aclYou must compile admin assets (css and javascript files):
$ cd admin/theme
$ npm ci
$ npm run buildCopy the content of router.php locally and run:
$ php -S localhost:8000 -t . router.phpOpen your browser following http://localhost:8000
Install web-server bundle:
$ composer require symfony/web-server-bundleAnd now you can simply run:
$ ./bin/console server:run --docroot=.Open your browser following http://localhost:8000
The nginx configuration to run the application can be:
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /path/to/phyxo;
    index index.php index.html;
    location / {
        # try to serve file directly, fallback to index.php
        try_files $uri /index.php$is_args$args;
    }
    location ~ ^/index\.php {
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_param APP_ENV dev;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        fastcgi_param DOCUMENT_ROOT $realpath_root;
    }
}That configuration is based on symfony ones Adapt configuration to you PHP version
Open your browser following http://localhost
The apache configuration to run the application can be:
Alias /phyxo	/path/to/phyxo
<Location /phyxo>
   Require all granted
   Options -MultiViews
   RewriteEngine On
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php [QSA,L]
</Location>Open your browser following http://localhost/phyxo/
or with a virtual host:
<VirtualHost *:80>
   DocumentRoot /path/to/phyxo
   <Location />
      Require all granted
      Options -MultiViews
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php [QSA,L]
   </Location>
</VirtualHost>Open your browser following http://localhost