Remove /tmp/ cronjob
5 0 * * * /bin/find /tmp/ -type f -print0 | xargs -0 rm
Importing a MySQLDUMP From your SSH command prompt type … mysqladmin -u {username} -p {password} create {databasename} mysql -u {username} -p {password} < {databasename.sql} Replace the parameters with the appropriate values {username} – this is your database username {password} – this is the password for your database {databasename} – the name of your database {databasename.sql}…
Update LANG Edit environtment vi /etc/environment add these lines… LANG=en_US.utf-8 LC_ALL=en_US.utf-8 Update and upgrade Core yum -y update yum -y upgrade Install NGINX yum install epel-release yum install nginx Start NGINX and Enable Service systemctl start nginx systemctl enable nginx Install PHP 8.0 Enable Remi Repo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm Check yum –disablerepo=”*” –enablerepo=”remi-safe” list php[7-9][0-9].x86_64…
Chrome and Firefox have started showing insecure warnings on sites without SSL certificates. Without SSL, your website will show insecure to the visitors. Therefore, using an SSL-encrypted connection for safety, accessibility or PCI compliance reasons is necessary. It becomes very important to redirect from HTTP to HTTPS. What is SSL? SSL (Secure Sockets Layer) is…
Here is the code for How To Change Style for File Upload in Contact Form7 , .your-file { color: transparent; } .your-file::-webkit-file-upload-button { visibility: hidden; } .your-file::before { content: ‘Seleziona un file’; color: white; display: inline-block; background: #ff9800; border: 2px solid #e68d09; border-radius: 3px; padding: 5px 8px; outline: none; white-space: nowrap; -webkit-user-select: none; cursor: pointer;…
Question How to configure the passive ports range for ProFTPd on a server behind a firewall? Answer Note: When configuring the passive port range, a selected port range must be in the non-privileged range (e.g., greater than or equal to 1024). It is strongly recommended that the chosen range should be large enough to handle…
Listing sizes in AWS S3 Buckets Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ –recursive –human-readable –summarize | tail -n2 Tail is used because otherwise all files will be printed on screen (but you may want that for some reason). Getting the size of a specific directory/file You just need to add the path…