sudo nano /etc/apache2/sites-available/default <VirtualHost *:80>         ServerAdmin webmaster@localhost         DocumentRoot /var/www         <Directory />                 Options FollowSymLinks                 AllowOverride None         </Directory>    Continue Reading

Export all databases via terminal 🙂 ssh root@address user password ******** cd Saving path mysqldump -u root -p –all-databases > all_dbs.sql databases Password *********** Export single databases via terminal 🙂 ssh root@address user password ******** cd Saving path mysqldump -u root -p databases_name > databases_name.sql databases Password *********** IMPOrt singleContinue Reading

MySQL import got a packet bigger than max_allowed_packet bytes #1153 – Got a packet bigger than ‘max_allowed_packet bytes Step 1:- Open this file my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql max_allowed_packet = 128M (Add this line) Restart mysql sudo /etc/init.d/mysqld restart

#2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured) Solution :- It turns out that the solution is to stop all the services and solve the “Another daemon is already running” issue. The commands i used to solve the issue are asContinue Reading

Access to the requested object is only available from the local network phpmyadmin sudo /opt/lampp/etc/extra/httpd-xampp.conf Comment “Deny from all” in the following section,      Change file     # # New XAMPP security concept # <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”> Order deny,allow #Deny from all #Require local Allow from ::1 \ fc00::/7Continue Reading

Delete a Database in MySQL on command’s  mysql -u root -p mysql> DROP DATABASE name_database; Or mysqladmin -u[username] -p[password] drop [database] DROP DATABASE ‘name-database’; EXIT;

! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ‘https://linuxsolustion@************* url.git’ hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: ‘git pull …’) before pushing again. hint: See the ‘Note about fast-forwards’Continue Reading

Press Alt+Ctrl+t  Go to download path the run this command. Download the app Click here sudo apt update sudo apt upgrade sudo dpkg -i file location with extension face Any error like Errors were encountered while processing: Solution sudo apt-get -f install sudo apt update sudo apt upgrade then reinstallContinue Reading

Switch to PHP 4.4: AddHandler application/x-httpd-php4 .php To switch to PHP 5.0: AddHandler application/x-httpd-php5 .php To switch to PHP 5.1: AddHandler application/x-httpd-php51 .php To switch to PHP 5.2: AddHandler application/x-httpd-php52 .php To switch to PHP 5.3: AddHandler application/x-httpd-php53 .php To switch to PHP 5.4: AddHandler application/x-httpd-php54 .php To switch toContinue Reading