What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 02:44:02
ntpq: read: connection refused
#First check ntpstat ntpstat #if it says "Unable to talk to NTP daemon. Is it running?, do systemctl status ntp #it will show as inactive (dead), do systemctl restart ntp #no output, do ntpstat #it will say "unsynchronised polling server eve... Add solution -
Shell/Bash 2021-08-28 02:11:02
PHP Fatal error: Uncaught Error: Call to undefined function Moontoast\Math\bcadd() in /var/www/html/sms-reporting-portal/vendor/moontoast/math/src/Moontoast/Math/BigNumber.php:506
#change php version with your version apt install php7.4-bcmath #nginx systemctl restart nginx #For Apache systemctl restart apache2 Add solution -
Shell/Bash 2021-08-27 15:42:01
ubuntu install php
# Update packages lists sudo apt update # Install Apache2 (on Ubuntu, mostly it's already installed) sudo apt install apache2 # Install the latest version of PHP and Apache wrapper sudo apt install php libapache2-mod-php # Install some important PHP ex... Add solution -
Shell/Bash 2021-08-27 03:33:02
ubuntu root login ssh
echo "PermitRootLogin yes" | sudo tee -a /etc/ssh/sshd_config sudo systemctl restart sshd # NOTE: root login is locked by default, assign a password with: # [sudo passwd root] # To lock root login afterwards run # [sudo passwd -l root] # To d... Add solution -
Shell/Bash 2021-08-27 03:01:02
how to start nginx in linux
sudo systemctl restart nginx Add solution -
Shell/Bash 2021-08-27 00:54:01
disable ssh login for user
# To deny SSH access to specific user called “sk”, edit sshd_config file: $ sudo vi /etc/ssh/sshd_config # Add/edit the following line in sshd_config file. DenyUsers sk # Deny SSH access to multiple users, specify the usernames with space se... Add solution -
-