PHP code is not being executed, instead code shows on the page
For php7.4 sudo a2enmod proxy_fcgi setenvif sudo a2enconf php7.4-fpm sudo service apache2 restart
For php7.4 sudo a2enmod proxy_fcgi setenvif sudo a2enconf php7.4-fpm sudo service apache2 restart
After updating grub2 and rebooting, my server does not boot: Booting from Hard Disk 0... error: symbol `grub_calloc' not found. Entering rescue mode... grub rescue> _ Solution: You have to detach you /dev/sda1 volume from the ec2 instance. Mount it…
Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are moved from the RAM to the swap space. Swap space…
After you increase the size of an EBS volume, you must use file system–specific commands to extend the file system to the larger size. You can resize the file system as soon as the volume enters the optimizing state. Important: Remember to…
Samba Error when trying to connect to a shared folder on local ubuntu samba server: \\192.168.1.34\sharename is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you…
The xset command mentioned in other answers will turn off all the monitors if you have multiple monitor setup. However if you want turn off only one or some of the monitor you should use xrandr. First run xrandr -q command, which will list all…
printf '\033[?7l' ls -l /a/folder/that/contains/files/with/long/names printf '\033[?7h'
## How to install mcrypt in php7.2 ## ## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ ## # # Check version php and pecl # php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php pecl version sudo apt-get install php-pear sudo…
$ sudo apt-get install cifs-utils $ sudo mount //WINSRV/SHARE -t cifs -o uid=1000,gid=1000,username=winuser /mnt/path where 'winuser' is the windows domain user, and optionally we can supply domain using domain=windomain with options. Note: to find out linux user's uid and…
https://www.unixmen.com/performing-incremental-backups-using-tar/
How to Setup a Multi-Protocol VPN Server Using SoftEther Introduction This article explains how to install and configure a multi-protocol VPN server using the SoftEther package. We enable and configure OpenVPN and L2TP over IPSec and SSTP VPN Servers on…
First test bzip2 compression, It should output OK. bzip2 -tv FILE.tar.bz2 Next uncompress the tarball, to get just the tar. bunzip2 FILE.tar.bz2 Finally verify the tar file, tar -tvfW FILE.tar
There is a utility program called "automysqlbackup" that is available in the Ubuntu repositories. This utility can be scheduled to automatically perform backups at regular intervals. To install this program, type the following into the terminal: sudo apt-get install automysqlbackup…
find /home/users/backup_MyDB -type f -mtime +7 -exec rm {} + Although generally it is wise to see what you are deleting before you delete (at least when testing you script) for this just do: find /home/users/backup_MyDB -type f -mtime +7
Cheatsheet: A; B Run A and then B, regardless of success of A A && B Run B if A succeeded A || B Run B if A failed A & Run A in background.
Create the directory with mkdir -p /run/lock The install should now work (you may need to clean the installation first)
In order to eliminate this warning Invalid argument: AH00076: Failed to enable APR_TCP_DEFER_ACCEP Add this to the end of /etc/apache2/apache2.conf AcceptFilter http none
http://askubuntu.com/questions/256013/could-not-reliably-determine-the-servers-fully-qualified-domain-name