IT-shit

Op deze pagina komen allemaal dingen over IT. Dit omdat ik zelf de opleiding IT Expert Systems and Devices doe.

Hier 1 command line om een lamp-server te installeren op Linux Ubuntu met:

Apache2 webserver
MySQL
PHP
phpmyadmin
Joomla! (Database)

sudo apt-get update && sudo apt-get install -y apache2 php libapache2-mod-php php-mysql php-curl php-gd php-json php-mbstring php-xml php-zip mysql-server && sudo mysql -e “CREATE DATABASE joomla;” && sudo mysql -e “CREATE USER ‘JOUW NAAM‘@’localhost’ IDENTIFIED BY ‘JOUW NAAM‘;” && sudo mysql -e “GRANT ALL PRIVILEGES ON joomla.* TO ‘JOUW NAAM‘@’localhost’;” && sudo apt-get install -y phpmyadmin && sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin && echo -e “\nInclude /etc/phpmyadmin/apache.conf” | sudo tee -a /etc/apache2/apache2.conf && sudo apt-get install -y unzip && cd /var/www/html && sudo wget https://downloads.joomla.org/cms/joomla3/3-10-2/joomla_3-10-2-stable-full_package.zip && sudo unzip joomla_3-10-2-stable-full_package.zip && sudo chown -R www-data:www-data joomla && sudo chmod -R 755 joomla

Let wel op dat je bij “jouw naam” je eigen naam invult.
“IDENTIFIED BY” is je wachtwoord

Verdere documentatie voor het maken van een lamp-server met een joomla database:
(Het staat in het Engels, maar vertalen kan je zelf wel)

# Update package lists

sudo apt update

# Install Apache web server

sudo apt install apache2 -y

# Install MySQL server and client

sudo apt install mysql-server mysql-client -y

# Install PHP and required modules

sudo apt install php libapache2-mod-php php-mysql php-curl php-gd php-xml php-mbstring -y

# Enable Apache rewrite module

sudo a2enmod rewrite

# Restart Apache web server

sudo systemctl restart apache2

# Install phpMyAdmin

sudo apt install phpmyadmin -y

# Configure phpMyAdmin to use luuk as localhost and identified by luuk

sudo sed -i ‘s/127.0.0.1/luuk/g’ /etc/phpmyadmin/config.inc.php

sudo sed -i ‘s/\$dbpass\ =\ ‘\”’\”;/\$dbpass\ =\ ‘\”luuk’\”;/g’ /etc/phpmyadmin/config.inc.php

# Install Joomla

cd /var/www/html

sudo wget https://downloads.joomla.org/cms/joomla3/3-9-27/Joomla_3-9-27-Stable-Full_Package.zip

sudo apt install unzip -y

sudo unzip Joomla_3-9-27-Stable-Full_Package.zip

sudo chown -R www-data:www-data /var/www/html

sudo rm Joomla_3-9-27-Stable-Full_Package.zip

# Create MySQL database for Joomla and user account

sudo mysql -e “CREATE DATABASE joomla;”

sudo mysql -e “CREATE USER ‘luuk’@’localhost’ IDENTIFIED BY ‘luuk’;”

sudo mysql -e “GRANT ALL PRIVILEGES ON joomla.* TO ‘luuk’@’localhost’;”

# Restart Apache and MySQL

sudo systemctl restart apache2

sudo systemctl restart mysql