Showing posts with label phpmyadmin. Show all posts
Showing posts with label phpmyadmin. Show all posts

Sunday, 18 March 2012

troubleshooting phpmyadmin / LAMP Server

If on new installation of server, you are unable to see phpmyadmin page properly or receive 404 error. than just do following.

Go to System > Administration > Synaptic Package Manager on you task-bar of your system. This will open a toolbar window.

Now, Search for phpmyadmin on top of that window. Now right click and select mark for installation to phpmyadmin from search results.

Now last thing is to click on apply on top of that window. after that just it will ask to download packages and follow instructions to select passwords and auto-configure server and its done.

Now you can have fun drawing your ideas on your personal web-server.

Troubleshooting Apache / LAMP Server

If you get this error: or you are unable to see http://localhost/ in your browser properly

sudo nano /etc/apache2/conf.d/fqdn
or
gksu "gedit /etc/apache2/conf.d/fqdn"

then add below line to file and save it and close the file.
ServerName localhost

This can all be done in a single command with the following:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn

Now have fun because its done

Please say thanks. Bcz i really mean it.

Wednesday, 29 June 2011

Create a MySQL User Account via the Terminal

First, Login to MySQL as an administrator account with:

mysql -u root -p

You will be prompted for your root password before being granted access to the MySQL

Now to check available user accounts on the system. type this command:

SELECT USER,host FROM mysql.USER;

If the user account that you wish to create doesn’t appear in that list
To create a new user account type this command:

CREATE USER 'new-username'@'localhost' IDENTIFIED BY 'password-for-new-account';

this user isn’t linked to any databases yet, but this is simple to rectify with a:

GRANT ALL ON mydatabase.* TO useraccount@localhost

that will grant all rights for the user account to everything held in the mydatabase database.

Saturday, 25 June 2011

HOW TO FIX "The requested URL /phpMyAdmin was not found on this server."

If you get a 404 "Not Found" error when you point your browser to the location of phpMyAdmin (such as: http://localhost/phpmyadmin) this is likely caused by not checking the 'Apache 2' selection during installation. To redo the installation run the following:

sudo dpkg-reconfigure -plow phpmyadmin

Then select Apache 2 for the webserver you wish to configure.

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload