<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.smpmusakarta.sch.id/index.php?action=history&amp;feed=atom&amp;title=Qcbt_di_ubuntu_22</id>
	<title>Qcbt di ubuntu 22 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.smpmusakarta.sch.id/index.php?action=history&amp;feed=atom&amp;title=Qcbt_di_ubuntu_22"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.smpmusakarta.sch.id/index.php?title=Qcbt_di_ubuntu_22&amp;action=history"/>
	<updated>2026-10-03T18:44:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://mediawiki.smpmusakarta.sch.id/index.php?title=Qcbt_di_ubuntu_22&amp;diff=6&amp;oldid=prev</id>
		<title>Gulbudin.musakarta: Created page with &quot;To set up an Nginx server with a maximum upload size of 215 MB, MariaDB, and PHP 5 with all extensions on Ubuntu 22.04, you can follow these steps. Additionally, we will configure Nginx to serve a website on any IP and install Webmin for easy server management.  1. **Update System Packages:**     ```bash     sudo apt update     sudo apt upgrade -y     ```  2. **Install Nginx:**     ```bash     sudo apt install nginx -y     ```  3. **Configure Nginx for Maximum Upload Siz...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.smpmusakarta.sch.id/index.php?title=Qcbt_di_ubuntu_22&amp;diff=6&amp;oldid=prev"/>
		<updated>2024-06-29T02:52:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;To set up an Nginx server with a maximum upload size of 215 MB, MariaDB, and PHP 5 with all extensions on Ubuntu 22.04, you can follow these steps. Additionally, we will configure Nginx to serve a website on any IP and install Webmin for easy server management.  1. **Update System Packages:**     ```bash     sudo apt update     sudo apt upgrade -y     ```  2. **Install Nginx:**     ```bash     sudo apt install nginx -y     ```  3. **Configure Nginx for Maximum Upload Siz...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To set up an Nginx server with a maximum upload size of 215 MB, MariaDB, and PHP 5 with all extensions on Ubuntu 22.04, you can follow these steps. Additionally, we will configure Nginx to serve a website on any IP and install Webmin for easy server management.&lt;br /&gt;
&lt;br /&gt;
1. **Update System Packages:**&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo apt update&lt;br /&gt;
    sudo apt upgrade -y&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
2. **Install Nginx:**&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo apt install nginx -y&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
3. **Configure Nginx for Maximum Upload Size:**&lt;br /&gt;
    Open the Nginx configuration file:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo nano /etc/nginx/nginx.conf&lt;br /&gt;
    ```&lt;br /&gt;
    Add the following line inside the `http` block:&lt;br /&gt;
    ```nginx&lt;br /&gt;
    client_max_body_size 215M;&lt;br /&gt;
    ```&lt;br /&gt;
    Save and close the file, then restart Nginx:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo systemctl restart nginx&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
4. **Install MariaDB:**&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo apt install mariadb-server mariadb-client -y&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    Secure the installation:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo mysql_secure_installation&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
5. **Install PHP 5:**&lt;br /&gt;
    Since PHP 5 is outdated and not available in the default repositories for Ubuntu 22.04, you need to use a PPA or manually compile it. Here we&amp;#039;ll use a PPA:&lt;br /&gt;
&lt;br /&gt;
    Add the repository:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo add-apt-repository ppa:ondrej/php&lt;br /&gt;
    sudo apt update&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    Install PHP 5.6 (latest PHP 5 version available from the PPA):&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo apt install php5.6 php5.6-fpm php5.6-mysql php5.6-cli php5.6-common php5.6-curl php5.6-gd php5.6-intl php5.6-json php5.6-mbstring php5.6-xml php5.6-zip php5.6-soap php5.6-bcmath -y&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
6. **Configure Nginx to Use PHP:**&lt;br /&gt;
    Create a new server block configuration file for your website:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo nano /etc/nginx/sites-available/your_website&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    Add the following configuration (replace `your_website` with your actual domain or server name):&lt;br /&gt;
    ```nginx&lt;br /&gt;
    server {&lt;br /&gt;
        listen 80;&lt;br /&gt;
        server_name your_website;&lt;br /&gt;
&lt;br /&gt;
        root /var/www/your_website;&lt;br /&gt;
        index index.php index.html index.htm;&lt;br /&gt;
&lt;br /&gt;
        location / {&lt;br /&gt;
            try_files $uri $uri/ =404;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~ \.php$ {&lt;br /&gt;
            include snippets/fastcgi-php.conf;&lt;br /&gt;
            fastcgi_pass unix:/run/php/php5.6-fpm.sock;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~ /\.ht {&lt;br /&gt;
            deny all;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    Enable the configuration:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo ln -s /etc/nginx/sites-available/your_website /etc/nginx/sites-enabled/&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    Test the configuration and restart Nginx:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo nginx -t&lt;br /&gt;
    sudo systemctl restart nginx&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
7. **Install Webmin:**&lt;br /&gt;
    Add the Webmin repository:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo nano /etc/apt/sources.list&lt;br /&gt;
    ```&lt;br /&gt;
    Add this line to the end of the file:&lt;br /&gt;
    ```&lt;br /&gt;
    deb http://download.webmin.com/download/repository sarge contrib&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    Add the Webmin GPG key:&lt;br /&gt;
    ```bash&lt;br /&gt;
    wget http://www.webmin.com/jcameron-key.asc&lt;br /&gt;
    sudo apt-key add jcameron-key.asc&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    Install Webmin:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo apt update&lt;br /&gt;
    sudo apt install webmin -y&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
8. **Access Webmin:**&lt;br /&gt;
    Webmin should be accessible via `https://your_server_ip:10000`. You can log in with your system&amp;#039;s root user and password.&lt;br /&gt;
&lt;br /&gt;
By following these steps, you should have a fully configured Nginx server with PHP 5, MariaDB, and Webmin on Ubuntu 22.04, capable of handling large file uploads up to 215 MB.&lt;/div&gt;</summary>
		<author><name>Gulbudin.musakarta</name></author>
	</entry>
</feed>