Last active
April 14, 2024 04:38
-
-
Save sethsandaru/77833e4b8322a1cf2a7ebba617d661c3 to your computer and use it in GitHub Desktop.
Install PHP 8.3, Nginx, MySQL & Supervisor - Ubuntu 22.04 (Ready for Laravel production)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using root | |
# Bump ubuntu | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
# Install dependencies | |
sudo apt-get install ca-certificates apt-transport-https software-properties-common lsb-release -y | |
# PHP repo | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update | |
# Install important stuff | |
# can remove the unnecessary extensions | |
sudo apt-get install php8.3 php8.3-common php8.3-cli \ | |
php8.3-opcache php8.3-mysql php8.3-mbstring php8.3-zip \ | |
php8.3-fpm php8.3-xml php8.3-bcmath php8.3-gd php8.3-curl \ | |
php8.3-intl php8.3-redis php8.3-imagick \ | |
nginx mysql-server supervisor -y | |
# Final check | |
php -v | |
mysql -v | |
# Setup MySQL | |
sudo mysql_secure_installation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nginx error stat: https://gist.github.com/windsting/038858d2c41f442a00669f901c550b5c