Skip to content

Commit

Permalink
emergency
Browse files Browse the repository at this point in the history
Emergency Release:  FIX max_file_uploads failing in PHP conf due to a single instead of double quotes. Duh!!!!
  • Loading branch information
QROkes committed Jan 12, 2022
1 parent c057036 commit 67fd1ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Webinoly provides a set of tools and commands that facilitate web server adminis

```bash
# Install Webinoly and LEMP
wget -qO weby qrok.es/wy && sudo bash weby 3
wget -qO weby qrok.es/wy && sudo bash weby

# Create your first site.
sudo site example.com -wp
Expand Down
2 changes: 1 addition & 1 deletion lib/general
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Prevent 'tput' errors when running from Cron
[[ -z $TERM || $TERM == "unknown" || $TERM == "dumb" ]] && export TERM=dumb

readonly app_version="1.16.0"
readonly app_version="1.16.1"
readonly svr_version="1.7"
readonly os_ubuntu_supported=(bionic focal)
readonly php_supported=(7.4 8.0 8.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/install
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ php_optim() {
# post_max must be a little larger and memory a little more larger - https://www.php.net/manual/en/ini.core.php#ini.post-max-size
sudo sed -i -r "/^[;]?upload_max_filesize =/c\upload_max_filesize = $(check_var max-mb-uploads)M" /etc/php/$ver/fpm/php.ini
sudo sed -i -r "/^[;]?post_max_size =/c\post_max_size = $(($(check_var max-mb-uploads)+1))M" /etc/php/$ver/fpm/php.ini
sudo sed -i -r '/^[;]?max_file_uploads =/c\max_file_uploads = $(check_var php-max-files)' /etc/php/$ver/fpm/php.ini
sudo sed -i -r "/^[;]?max_file_uploads =/c\max_file_uploads = $(check_var php-max-files)" /etc/php/$ver/fpm/php.ini
[[ $(check_var php-max-mem) -gt $(($(check_var max-mb-uploads)+1)) ]] && local phpmem=$(check_var php-max-mem) || local phpmem=$(($(check_var max-mb-uploads)+10))
sudo sed -i -r "/^[;]?memory_limit =/c\memory_limit = ${phpmem}M" /etc/php/$ver/fpm/php.ini

Expand Down
2 changes: 1 addition & 1 deletion templates/general/conf
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
#awsiamrole:false


# WordPress Login Basic Authentican
# WordPress Login Basic Authentication
# Values: boolean (true/false)
# Default: true
# Note: (server-reset not needed)
Expand Down

0 comments on commit 67fd1ef

Please sign in to comment.