Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12th July 2012, 00:53
Dan Healy Dan Healy is offline
Junior Member
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing Apache2 with PHP5 and MySQL Support on Ubuntu 12.04

I have followed your tutorial with this title with some success:

2 - Installing MySQL 5 worked as expected.

3 - Installing Apache2 worked but gave an IP address of instead of When I opened in the browser I got "It works!".

4 - Installing PHP5 worked as expected.

5 - Testing PHP5 worked as expected and I was able to show info.php in the browser.

6 - Getting MySQL Support in PHP5 appeared to work. I didn't run apt-cache search php5, I just selected php5-mysqland php5-gd from the list in the tutorial. I then did Apache2 restart.

7 - phpMyAdmin I ran apt-get install phpmyadmin and answered the two questions correctly, but it did not show in /var/www. I couldn't find it, so I tried to install it again and it told me it was already installed.

I am trying to port my application from 10.04 to 12.04. MySQL with 12.04 took my dump.sql and permissions.sql with no apparent problems. When I opened my application in the browser I had to use as the IP address, and not localhost or When I tried to connect to the database my application returned the following message:

Could not connect to the database.
mysql error number: 1045
mysql error: Access denied for user 'LSStudent'@'localhost' (using password: YES)

The host and user entries in the user table from the mysql database are below:

mysql> select host, user from user;
| host | user |
| % | LSAdmin |
| % | LSAuthor |
| % | LSStudent |
| | root |
| ::1 | root |
| dan-K54C | |
| dan-K54C | root |
| localhost | |
| localhost | debian-sys-maint |
| localhost | root |

Apparently my users are not associated with any host, so cannot be found. How do I find my users, and how do I find phpmyadmin?

Thanks for reading this. I hope you can help.

Dan H.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Apache2 With PHP5 And MySQL Support On CentOS 5.5 raymccoy HOWTO-Related Questions 1 22nd February 2011 15:57
Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 10.10 SamTzu HOWTO-Related Questions 5 27th November 2010 22:53
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Problems installing LAMP - MySQL and PHP5 JosBR Server Operation 5 19th December 2009 22:00
MySQL problem satimis Server Operation 5 25th June 2008 16:41

All times are GMT +2. The time now is 09:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.