Sticky

Introduction A “LAMP” stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored inRead More →

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

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 singleRead More →

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) Connection for control user as defined in your configuration failed. Solution :- It turns out that the solution is to stop all the services and solve the “Another daemon is already running” issue.Read More →

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 127.0.0.0/8 \ fc00::/7Read More →

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’Read More →

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: Skype Solution sudo apt-get -f install sudo apt update sudo apt upgradeRead More →

tgo To 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 ToRead More →