Change config

This commit is contained in:
Michael RICOIS 2017-02-10 11:12:01 +01:00
parent 9069fd32e3
commit 2c2d31afe6
4 changed files with 30 additions and 76 deletions

View File

@ -1,11 +0,0 @@
# AltiScore
00 4 * * 1-5 www-data php /home/vhosts/extranet/current/scripts/jobs/getAltiScore.php --cron >> /home/vhosts/data/log/altiscore.log
# Envoi commande bilan
0 * * * * root php /home/vhosts/extranet/current/scripts/jobs/bilaninput.php --send >> /home/vhosts/data/log/bilaninput.log 2>&1
# Suppression fichier
#0 10 01 * * root php /home/vhosts/extranet/current/scripts/jobs/bilaninput.php --delete >> /home/vhosts/data/log/bilaninput.log 2>&1
# Suppression fichier temporaire
01 15 06 * * root php /home/vhosts/extranet/current/scripts/jobs/removeTempFile.php --options all

View File

@ -29,15 +29,6 @@ SYSTEM REQUIREMENTS
INSTALLATION INSTALLATION
============ ============
See the file scripts/build/configure.php
On server this script is automatically called with the install option.
configure.php --install
Each servers are reference with a directory, name as the hostname, in config dir and all configure
file is list here
Environment configuration Environment configuration
------------------------- -------------------------
@ -48,7 +39,10 @@ Environment configuration
SetEnv APPLICATION_ENV "production" => Production SetEnv APPLICATION_ENV "production" => Production
SetEnv APPLICATION_ENV "staging" => Recette SetEnv APPLICATION_ENV "staging" => Recette
SetEnv APPLICATION_ENV "development" => Developpement SetEnv APPLICATION_ENV "development" => Developpement
Set in apache vhost config file (mod_php) or in .user.ini (php-fpm)
- Persistent Storage - Persistent Storage
[profil.path.shared]/persit/ [profil.path.shared]/persit/
@ -84,7 +78,7 @@ Environment configuration
ln -vsf [profil.path.shared]/temp/pages/imgcache [profil.path.shared]/temp/pages/file/image/cache/q; ln -vsf [profil.path.shared]/temp/pages/imgcache [profil.path.shared]/temp/pages/file/image/cache/q;
ln -vsf [profil.path.shared]/persist/streetview [profil.path.shared]/temp/pages/file/streetview/img/q; ln -vsf [profil.path.shared]/persist/streetview [profil.path.shared]/temp/pages/file/streetview/img/q;
ln -vsf [profil.path.shared]/persist/logos [profil.path.shared]/temp/pages/file/image/logo/q; ln -vsf [profil.path.shared]/persist/logos [profil.path.shared]/temp/pages/file/image/logo/q;
ln -vsf [VHOST]/publis/themes [profil.path.shared]/temp/pages/themes; ln -vsf [VHOST]/public/themes [profil.path.shared]/temp/pages/themes;
Apache configuration Apache configuration
@ -93,33 +87,34 @@ Apache configuration
=> Development example => Development example
<VirtualHost *:80> <VirtualHost *:80>
ServerName extranet.sd.dev ServerName extranet.sd.dev
AddDefaultCharset utf-8 SetEnv APPLICATION_ENV "development"
DocumentRoot "WORKSPACE/extranet/public" AddDefaultCharset utf-8
SetEnv APPLICATION_ENV "development" DirectoryIndex index.php
<Directory "WORKSPACE/extranet/public/"> DocumentRoot /home/vhosts/extranet/public
AllowOverride All <Directory /home/vhosts/extranet/public/>
Order allow,deny EnableSendfile Off
Allow from all AllowOverride none
<IfModule mod_rewrite.c> Require all granted
RewriteEngine On <IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR] RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR] #RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteRule ^.*$ - [NC,L] RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ index.php [NC,L] RewriteRule ^.*$ - [NC,L]
</IfModule> RewriteRule ^.*$ index.php [NC,L]
</Directory> </IfModule>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg. </Directory>
LogLevel debug # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
ErrorLog "logs/extranet-error.log" LogLevel debug
CustomLog "logs/extranet-access.log" common ErrorLog ${APACHE_LOG_DIR}/extranet-error.log
</VirtualHost> CustomLog ${APACHE_LOG_DIR}/extranet-access.log combined
</VirtualHost>
=> Production configuration => Production configuration
See VHOST file See in ansible project
PHP Configuration PHP Configuration
@ -271,4 +266,3 @@ Dans le vhosts d'apache :
php_flag apc.cache_by_default On php_flag apc.cache_by_default On

View File

@ -1,29 +0,0 @@
APACHE 2.4
==========
<VirtualHost *:80>
ServerName extranet.sd.dev
AddDefaultCharset utf-8
SetEnv APPLICATION_ENV "development"
DirectoryIndex index.php
DocumentRoot /home/vhosts/extranet/public
<Directory /home/vhosts/extranet/public/>
EnableSendfile Off
AllowOverride none
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
</Directory>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
ErrorLog /home/vhosts/apachelog/extranet-error.log
CustomLog /home/vhosts/apachelog/extranet-access.log combined
</VirtualHost>