Zerga ordenanak kontsulta.
####Requirements
PHP needs to be a minimum version of PHP 5.5.9
JSON needs to be enabled
ctype needs to be enabled
Your php.ini needs to have the date.timezone setting
Optional
You need to have the PHP-XML module installed
You need to have at least version 2.6.21 of libxml
PHP tokenizer needs to be enabled
mbstring functions need to be enabled
iconv needs to be enabled
POSIX needs to be enabled (only on *nix)
Intl needs to be installed with ICU 4+
APC 3.0.17+ (or another opcode cache needs to be installed)
php.ini recommended settings
short_open_tag = Off
magic_quotes_gpc = Off
register_globals = Off
session.auto_start = Off
#Instalaziorako jarraibideak
#####Composer Jarraitu jarraibideak hemen
#####Repositorioa deskargatu apache zerbitzarian eta liburutegiak instalatu git clone [email protected]:PasaiakoUdala/zzzoo.git zzoo.dev
cd zzoo.dev
composer install
Instalazioa amaitu ondoren datu basea, erabiltzailea, izena... datuak eskatuzko dizkigu.
#####Instalazio prozesua amaitu
php bin/console assets:install web --symlink
php bin/console cache:clear --env=prod --no-debug
mkdir -p web/doc
#####Baimenak zehaztu
sudo setfacl -R -m u:www-data:rwx -m u:whoami
:rwx var/cache var/logs var/sessions web/doc
sudo setfacl -dR -m u:www-data:rwx -m u:whoami
:rwx var/cache var/logs var/sessions web/doc
#####Apache vhost bat sortu
######Apache 2.2 <VirtualHost *:80> ServerName zzoo.dev ServerAlias zzoo.dev ServerAdmin webmaster@localhost
DocumentRoot /var/www/zzoo.dev/web
<Directory /var/www/zzoo.dev/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /app.php [QSA,L]
</IfModule>
</Directory>
</VirtualHost>
######Apache 2.4 <VirtualHost *:80> ServerName zzoo.dev
DocumentRoot /home/ikerib/dev/zzoo.dev/web
<Directory /home/ikerib/dev/zzoo.dev/web>
AllowOverride All
Require all granted
</Directory>
<Directory /home/ikerib/dev/zzoo.dev>
Options FollowSymlinks
</Directory>
ErrorLog /var/log/apache2/zzoo.dev_error.log
CustomLog /var/log/apache2/zzoo.dev_access.log combined
</VirtualHost>