Update Instruction

This commit is contained in:
Lionel 2021-01-19 09:06:14 +01:00
parent f5ea3a2326
commit ce6ed4b184
3 changed files with 26 additions and 30 deletions

View File

@ -1,9 +1,34 @@
## For Install it ## ## For Install it ##
Download and extract the zip file for download fontawesome on server ROOT Install Dependency :
```
sudo apt install apache2 php php-mbstring
```
Install Fontawesome :
Download and extract the zip file on server ROOT
``` ```
wget https://use.fontawesome.com/releases/v5.15.1/fontawesome-free-5.15.1-web.zip wget https://use.fontawesome.com/releases/v5.15.1/fontawesome-free-5.15.1-web.zip
unzip fontawesome-free-5.15.1-web.zip unzip fontawesome-free-5.15.1-web.zip
rm fontawesome-free-5.15.1-web.zip rm fontawesome-free-5.15.1-web.zip
mv fontawesome-free-5.15.1-web fontawesome mv fontawesome-free-5.15.1-web fontawesome
``` ```
Change Apache2 Configuration for security :
```
#Add these lines to /etc/apache2/apache2.conf
<Directory /var/www/html/uploads/>
Options -Indexes -FollowSymLinks
php_flag engine off
</Directory>
```
Change php max upload size :
```
#Edit these lines in /etc/php/<php_version>/apache2/php.ini
post_max_size = 5G
upload_max_filesize = 5G
```

View File

@ -1,5 +0,0 @@
#Add these lines to apache2.conf
<Directory /var/www/html/uploads/>
Options -Indexes -FollowSymLinks
php_flag engine off
</Directory>

View File

@ -1,24 +0,0 @@
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
;post_max_size = 8M
post_max_size = 5G
; Whether to allow HTTP file uploads.
; http://php.net/file-uploads
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
;upload_max_filesize = 2M
upload_max_filesize = 5G
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20