Skip to main content

Posts

Showing posts from 2018

Updating PHP Version in XAMPP for Windows

XAMPP  is a great suite to quickly get up and running with Apache, PHP, Perl and MySQL.  Warning !  It is not aimed to be used in a production environment! Its settings are geared towards ease of use rather then security! However I went against my own advice and used it in a couple of instances, however these are not public facing sites, rather internal and heavily firewalled services. Even so whenever a security update to PHP comes out, I feel the need to use the new version. Here is how you can do it, without waiting for the official XAMPP package to update (you really can't criticize them for not updating faster, since it is a  development  not a production server and as such minor PHP releases shouldn't influence your code). Warning!  Use these instructions on your own risk. They are written to the best of my knowledge, however I can't make any guarantees. Always backup your data. Download the latest binary version of PHP (make sure to get the .zip package no

Reset the MySQL/MariaDB Root Password Ubuntu

By default, the MySQL/MariaDB installation that ships with XAMPP has an empty root password. This is a serious security risk, especially if you plan to use XAMPP in production scenarios. To change the MySQL/MariaDB root password, follow these steps: Ensure that the MySQL/MariaDB server is running. Open a new Linux terminal. Use the  mysqladmin  command-line utility to alter the MySQL/MariaDB password, using the following syntax: mysqladmin --user=root password "newpassword" The  mysqladmin  command-line utility is located within the  bin/  subdirectory of the XAMPP installation directory, typically  /opt/lampp . For example, to change the MySQL/MariaDB root password from its default empty value to the password  gue55me , you would execute: /opt/lampp/bin/mysqladmin --user=root password "gue55me" Or, if a password has already been previously set and you’d like to change it to a new one, you can use the following syntax: m

Mysql and Apache in not starting in Xampp in Ubuntu

 Mysql Configuration 1. Open XAMPP Installation Directory 2. Open "etc" Folder 3. Find "my.cnf" file and open it in any text editor 4. Change Port from 3306 to 3307 ( if you have installed skype or other apps ) 5. Add "innodb_force_recovery=1" under "myisam_sort_buffer_size=8M" 6. Save "my.cnf" file 7. Open xampp :- 8. Goto Computer ( opt )> Open lampp folder ( Search "lampp" if u can 't see lampp folder)> Open manager-linux.run 9. In XAMPP Click on "Manage Server" Tab> Click on "Mysql Database"> Click on "Configure"> Change Port from 3306 to 3307> save and start the mysql database. Uninstall and Install Apache First: sudo apt-get --purge remove apache2 sudo apt-get autoremove Then installing apache2 is as simple as: sudo apt-get install apache2 sudo /etc/init.d/apache2 restart To test it: port: 8080

Create an exe file format or Shortcut to Start XAMPP in Ubuntu

First of all you need to install gksu with the following command: sudo apt-get install gksu Then, run: gksu gedit /usr/share/applications/xampp-control-panel.desktop and save the following code in the file. (You are using 64 bit system so there is no need to change anything, simply do copy paste) [Desktop Entry] Encoding=UTF-8 Name=XAMPP Control Panel Comment=Start and Stop XAMPP Exec=gksudo /opt/lampp/manager-linux-x64.run Icon=/opt/lampp/htdocs/favicon.ico Categories=Application Type=Application Terminal=false Note: For 32 bit xampp type "manager-linux.run" at place of "manager-linux-x64.run" Run following command in terminal: sudo apt-get update Now check applications, its icon has been created. It will not create icon on desktop, it will create a entry in applications search as shown in the screenshot. NOW!  Check your directory it is correct, if some folders of xampp are missing. Check mine and compare. To uninstall your current x

10 COMMON WORDPRESS ERRORS AND THEIR SOLUTIONS

10 COMMON WORDPRESS ERRORS AND PROBLEMS (AND THEIR SOLUTIONS) In its  thirteen years of its existence , WordPress has enabled countless people to start their own websites, careers, and businesses online. That’s a pretty impressive feat and a testament to the platform’s abilities. However, nobody is perfect, not even our favorite content management system. With so many people using the platform in different environments and for different purposes, things won’t always go smoothly and users will run into issues on the way. In fact, there are a number of common WordPress problems that most users are likely to encounter at least once. The good news is that with its vast user base and supportive community, someone has probably already been in the same situation and provided a solution. That is exactly what we will do now. In the following we will look at some of the most common WordPress errors and issues and how to fix them. That way, should you ever encounter any of them i