sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install apache2 php7.4 php7.4-zip php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-cli -y
sudo apt-get install libarchive-dev unzip pbzip2 pixz xzip -y
sudo apt-get install mariadb-server -y
sudo mysql_secure_installation
sudo mysql -uroot -p
CREATE DATABASE forum;
CREATE USER 'club'@'localhost' IDENTIFIED BY 'jokary51';
GRANT ALL PRIVILEGES ON forum.* TO 'club'@'localhost';
FLUSH PRIVILEGES;
sudo apt-get install phpmyadmin php7.4-mysql -y
sudo a2enmod rewrite
sudo a2enmod php7.4
modifier php.ini
max_input_time = 160
---
> max_input_time = 60
694c694
< post_max_size = 25M
---
> post_max_size = 8M
846c846
< upload_max_filesize = 25M
---
> upload_max_filesize = 2M
sudo /etc/init.d/apache2 restart
importer base
sudo apt-get install vsftpd
sudo nano /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
chroot_local_user=YES
user_sub_token=$USER
local_root=/home/$USER/ftp
importer forum
importer database
modifier apache2
Etape 2 php5:
sudo apt-get install software-properties-common -y
wget https://packages.sury.org/php/apt.gpg
sudo apt-key add apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt-get update
sudo apt-get install php5.6 php5.6-fpm php5.6-mysql libapache2-mod-php5.6 libapache2-mod-fcgid -y
sudo systemctl start php5.6-fpm
sudo a2enmod actions fcgid alias proxy_fcgi
sudo systemctl restart apache2
modifier fichier apache
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start wget https://packages.sury.org/php/apt.gpg
#RedirectMatch ^/$ /apache2-default/
# For Apache version 2.4.10 and above, use SetHandler to run PHP as a fastCGI process server
SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost"