FROM php:7.4.10-apache MAINTAINER ICEcoder <[email protected]> ENV DEBIAN_FRONTEND noninteractive RUN a2enmod rewrite RUN a2enmod ssl RUN service apache2 restart RUN apt-get update && \ apt-get install unzip -y && \ apt-get clean all && \ curl -o /icecoder.zip 'https://downloads.icecoder.net/ICEcoder-8.1.zip' && \ unzip -q /icecoder.zip -d /tmp/ && \ cp -r /tmp/ICE* /var/www/html/icecoder && \ echo "<!DOCTYPE html>\n<html>\n<head>\n<title>Welcome to your new site</title>\n</head>\n<body style=\"text-align: center; font-family: monospace\">\n<h1>Welcome!</h1>\n<p>Head to ICEcoder at <a href=\"/icecoder\">localhost:8080/icecoder</a> to create a password and start coding!</p>\n</body>\n</html>" > /var/www/html/index.php && \ chown -R www-data.www-data /var/www/html && \ chmod 755 /var/www/html && \ rm -rf /icecoder.zip /tmp/ICE*
Monthly Archives: July 2022
monit rabbitmq
check process rabbitmq-server matching "/usr/lib/erlang/erts-6.2/bin/beam"
group rabbitmq
start program = "/etc/init.d/rabbitmq-server start"
stop program = "/etc/init.d/rabbitmq-server stop"
if failed port 5672 type tcp then restart
if 3 restarts within 3 cycles then timeout
mysql find pid file location
/usr/sbin/mysqld --print-defaults | tr " " "\n" | grep pid | tail -n 1
bash smtp auth
echo "PUT YOUR MAIL BODY HERE" | mailx -s "SUBJECT" -S smtp=smtp://yoursmtpserver.com -S smtp-auth=login -S smtp-auth-user=YOUR_USERNAME -S smtp-auth-password=YOUR_PASSWORD -S from="Sender Name
Error: Failed to download metadata for repo
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*