A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
How to schedule cron job which runs in a specific timezone’s time.
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
Convert time to whatever timezone server time is in then proceed as normal.
You can type !ref in this text area to quickly search our full set of tutorials, documentation &
marketplace offerings and insert the link!
I accidentally typed root@xxxxx:/var/www/html/xxxxx.com/listimages# sudo chown -R www-data:www-data /. How do I restore the file permission?
I got this error whenever I try to use sudo
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
withou it I cant change owneship.
I am relatively new to UFW and iptables.
I need the following port forwarding to be permanent:
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 8443 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443
I have enabled UFW and made settings in there as well.
When rebooting the UFW settings remain but the iptables settings disappear.
How do I make them permanent? Preferably via UFW - if possible.
Hi guys! I want to migrate a site to digitalocean. It's on wordpress, so I choose wordpress droplet.
I also installed phpMYAdmin, so I imported the database.
At this point, everything is alright!
But I want to upload the content to this new server. And it should be through filezilla, because the graphic way is more comfortable to me.
Can anyone help me please? But I need a step-by-step guide.
Thank you in advance!!!
i forget to save my pervious system ssh key backup. Now i m creating new ssh key and adding in my droplet security-> add ssh. But problem is that i m unable to connect my server. Can you guide me.