Skip to content

Instantly share code, notes, and snippets.

@sethsandaru
Last active April 14, 2024 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sethsandaru/77833e4b8322a1cf2a7ebba617d661c3 to your computer and use it in GitHub Desktop.
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)
# 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
@sethsandaru
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment