Configure your website with a specific version of PHP: <FilesMatch \.php$> SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost" </FilesMatch>
Can't delete a folder or file on ubuntu? Showing lock icon? Here's the solution: sudo chmod -R 777 /path
Configure your website or update website configuration file in Apache: sudo nano /etc/apache2/sites-available/your_domain.conf <VirtualHost *:80> ServerName your_domain ServerAlias www.your_domain
Process of cloning private git repo to cpanel Generate ssh key (cpanel terminal command) ssh-keygen -t rsa -b 2048 -C "username@cpanelurl" Give permission
Can't use GROUP BY in mysql 8 and above? Here's the solution! Remove ONLY_FULL_GROUP_BY from mysql console SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); Be aware that this setting is NOT persistent across restarts, then use
.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration solution sudo a2enmod rewrite && sudo service apache2 restart
Import an SQL file using the command line in MySQL mysql -u username -p database_name < /path/to/file.sql
Php mkdir(): Permission denied problem solution ubuntu sudo chown -R www-data:www-data /path/to/webserver/www
Remove Package/Application from ubantu permanently sudo apt-get remove name sudo apt-get purge name sudo apt-get autoclean