How to Setup LAMP
-
2. Install Required Packages
Install the essential Apache/NGINX, PHP, and MariaDB/PostgreSQL components for ownCloud hosting:
sudo dnf install httpd mariadb-server php php-cli php-common php-fpm php-mysqlnd php-gd php-xml php-mbstring php-json php-zip unzip policycoreutils-python-utils -y
-
3. Enable and Start Services
Enable and start your web and database services so they run automatically at boot:
sudo systemctl enable --now httpd mariadb
-
4. Secure the Database
Run the MariaDB secure installation script to set a root password and remove unsafe defaults:
sudo mysql_secure_installation
-
5. Create the Database and User
Create a dedicated ownCloud database and user:
mysql -u root -p -e "CREATE DATABASE owncloud; GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'yourpassword'; FLUSH PRIVILEGES;"
Contents