Category: Linux

  • Install WordPress on Amazon EC2 Free Tier 2025 Method [WORKING]

    Install WordPress on Amazon EC2 Free Tier 2025 Method [WORKING]

    A quick and dirty how-to install wordpress on an ubuntu 24 imageusing Amazon EC2 virtual machines. Contact me if you need help! Probably not complete.

    sudo apt update
    sudo apt install apache2 -y
    sudo apt upgrade -y
    sudo systemctl enable apache2
    sudo systemctl start apache2
    
    

    During mysql setup remove all test components and databases and only allow root to localhost this is important

    sudo apt install php php-mysql libapache2-mod-php php-cli php-common php-xml php-zip php-curl php-mbstring -y
    sudo systemctl restart apache2
    sudo mysql -u root -p
    
    CREATE DATABASE wordpress;
    CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'your_password';
    GRANT ALL PRIVILEGES ON wordpress.* TO 'wp_user'@'localhost';
    EXIT;
    
    cd /tmp
    wget https://wordpress.org/latest.tar.gz
    tar -xvzf latest.tar.gz
    
    sudo mv wordpress /var/www/html/
    sudo chown -R www-data:www-data /var/www/html/wordpress
    sudo chmod -R 755 /var/www/html/wordpress
    
    sudo nano /etc/apache2/sites-available/wordpress.conf
    
    #paste this
    <VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/
        ServerName your_domain_or_IP_address
    
        <Directory /var/www/html/wordpress>
            AllowOverride All
            Require all granted
        </Directory>
    
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    <VirtualHost *:443>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/wordpress
        ServerName your_domain_or_ip
    
        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/your_domain_or_ip/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/your_domain_or_ip/privkey.pem
        SSLCertificateChainFile /etc/letsencrypt/live/your_domain_or_ip/chain.pem
    
        <Directory /var/www/html/wordpress>
            AllowOverride All
            Require all granted
        </Directory>
    
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>

    then these commands

    sudo a2ensite wordpress.conf
    sudo a2enmod rewrite
    sudo apt install certbot
    sudo apt install python3-certbot-apache
    
    SSLCertificateFile /etc/letsencrypt/live/illphated.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/illphated.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/illphated.com/chain.pem
    
    sudo ufw allow in "Apache Full"
    
    

  • Running Windows XP Virtual Machine on UTM App MacOS / iOS

    Running Windows XP Virtual Machine on UTM App MacOS / iOS

    As mentioned in my video the image for you to run is attached

    Windows XP Virtual Machine, UTM App, MacOS Virtualization, iOS Virtual Machines, Windows XP on Mac, Virtual Machine Setup, UTM App Guide, MacOS Virtual Machine, Run Windows XP MacOS, iOS UTM App Tutorial, Virtualization on iOS, Windows XP Virtualization, UTM App Windows XP, Windows XP iOS, MacOS Virtualization Tools, iOS Virtualization Apps, Windows XP on iPad, Virtual Machine Tips, Windows XP UTM Setup, Cross-Platform Virtualization.

  • Restoring Visitor IP Address while using Cloudflare Proxy DNS

    Restoring Visitor IP Address while using Cloudflare Proxy DNS

    So if you like me and use Cloudflare as your DNS and name server provider while also using WordPress, you’ll probably notice that the visitor IP’s are masked by the proxy service. Now I use virtualmin and webmin as my hosting manager, and there’s no built-in solution to restore visitor IP address. Here is a guide on how to easily install the required Apache modules to restore visitor IP address. This will help you build accurate website reports and get a better feel for the demographics going to your website. Another thing is that I use Ubuntu 20.1 and Apache 2.4. This is the best guide to restore visitor IP addresses that I found yet. I hope this helps.

    Make sure the following is installed:

    • Red Hat/Fedora sudo yum install httpd-devel libtool git
    • Debian/Ubuntu sudo apt-get install apache2-dev libtool git

    Clone the following for the most recent build of mod_cloudflare:

    • Red Hat/Fedora/Debian/Ubuntu: git clone https://github.com/cloudflare/mod_cloudflare.git; cd mod_cloudflare

    Use the Apache extension tool to convert the .c file into a module:

    • Red Hat/Fedora/Debain/Ubuntu:apxs -a -i -c mod_cloudflare.c

    Restart and verify the module is active:

    • Red Hat/Fedoraservice httpd restart; httpd -M|grep cloudflare
    • Debian/Ubuntu:sudo apachectl restart; apache2ctl -M|grep cloudflare

    Just know that the last step didn’t work for me I had to restart Apache 2.4 manually.