Anwar

Posts

How to Force cp Command to Overwrite without Confirmation

cp /usr/share/GeoIP/GeoIP2-Country.mmdb /home/runcloud/webapps/app-staging-com/storage/app/maxmind/GeoIP2-Country.mmdb   Usually, when you run a cp command, it overwrites the destination file(s) or directory as shown. # cp bin/git_pull_frontend.sh test/git_pull_frontend.sh To run cp in...

Ubuntu geoipupdate install

geoipupdate ls -la /usr/share/GeoIP cp /usr/share/GeoIP/GeoIP2-Country.mmdb /home/runcloud/webapps/app-staging21-2gamecms-com/storage/app/maxmind/GeoIP2-Country.mmdb Add the MAXMIND repository to your Ubuntu Linux. Copy to Clipboard 1 add-apt-repository ppa:maxmind/ppa Install the package named...

How to run a cron job using the sudo command

I won’t get into how much this is a bad idea; simply put, running sudoin crontab requires your password to be stored somewhere in plaintext. It’s...

How to create multiple child themes with WordPress Multisite

If you are working with WordPress, it is always best practice to use child themes if you want to make any changes to your theme....

How to increase the WordPress Multisite Network limit for Maximum Filesize Upload

To increase that limit, go to your WordPress admin area > My Sites > Network Admin > Settings. Scroll down to the Max upload file size and set the preferred value. Resource:...

Getting HTTP code in PHP using curl

First make sure if the URL is actually valid (a string, not empty, good syntax), this is quick to check server side. For example, doing...

How to Set a Ping Packet Size

One of the most handy tools for testing connectivity to remote hosts is the ping utility found in most operating systems. Named after sonar pinging,...

Connection refused on live

If MySQL Server is up and running – then this looks like some transport (e.g. firewall) problem. First step is to try telnet command below...

Laravel With GIT Deployment The Right Way

git merge composer install composer dump-autoload -o php artisan migrate –force php artisan clear-compiled php artisan view:clear php artisan config:clear php artisan optimize composer dump-autoload...