Production settings

PHP settings

Jedisjeux requires php 7.1.

For available list of packages you can read php71_packages.

$ sudo yum install mod_php71w php71w-cli php71w-intl php71w-pdo php71w-xml php71w-gd php71w-mysql

In order to know pathname of php.ini, you can use this following command.

$ php --ini

Edit php.ini and change these parameters.

date.timezone = Europe/Paris
memory_limit = 2048M
upload_max_filesize = 10M
post_max_size = 20M

Apache settings

Virtual host

For more details, you can read virtualHostsTutorial.

$ touch /etc/httpd/sites-available/01-jedisjeux.conf
<VirtualHost *:80>
        DocumentRoot /home/jedisjeux/current/web/
        <Directory "/home/jedisjeux/current/web">
                DirectoryIndex app.php
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
        ServerName XX.XXX.XX.XXX
        ServerAlias XX.XXX.XX.XXX
        CustomLog logs/ovh-access_log combined
        ErrorLog  /var/log/httpd/jedisjeux-error_log

Restart apache

service httpd restart

Install ssh key

$ ssh-keygen

Enter blank paraphrase And confirm blank paraphrase

User permissions

Adding jedisjeux to apache group

$ usermod -a -G apache jedisjeux

Ensure access

$ chmod g-w /home/jedisjeux
$ chmod 700 /home/jedisjeux/.ssh
$ chmod 600 /home/jedisjeux/.ssh/authorized_keys