This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sure, here's a bash script that will install the ImageMagick library and the imagick extension for PHP 7.4 by default, with an option for the user to choose PHP 8.3. This script will handle the installation through PECL and ensure the correct permissions are set for the library. | |
```bash | |
#!/bin/bash | |
# Function to install imagick for a specified PHP version | |
install_imagick() { | |
PHP_VERSION=$1 | |
PHP_BIN="/usr/local/lsws/lsphp${PHP_VERSION}/bin" | |
PHP_INI="/usr/local/lsws/lsphp${PHP_VERSION}/etc/php.ini" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update system packages | |
echo "Updating system packages..." | |
sudo apt update | |
# Install curl if not installed | |
echo "Installing curl..." | |
sudo apt install curl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
clear | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
lscpu | |
sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
clear | |
apt-cache policy docker-ce | |
sudo apt-get -y install docker-ce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$EUID" -ne 0 ]]; then | |
echo "Sorry, you need to run this as root" | |
exit | |
fi | |
while [[ -z $action ]]; do | |
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# GET ALL USER INPUT | |
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT | |
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT | |
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 7080 -j ACCEPT | |
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 8080 -j ACCEPT | |
sudo netfilter-persistent save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MySQL/MariaDB configuration file. | |
sudo nano /etc/mysql/mysql.conf.d/mysql.cnf | |
on MariaDB server, the file may live below | |
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.grecaptcha-badge { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /new { | |
try_files $uri $uri/ /new/index.php?$args /new/index.php?q=$uri&$args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name www.verifiedbyme.xyz; | |
# SSL | |
ssl_certificate /etc/nginx/ssl/nginx.crt; | |
ssl_certificate_key /etc/nginx/ssl/nginx.key; | |
# reverse proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# START Nginx Rewrites for Rank Math Sitemaps | |
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last; | |
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; | |
# END Nginx Rewrites for Rank Math Sitemaps |
NewerOlder