PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 16, 2019 9:01 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Nov 18, 2014 9:32 am 
Offline
Forum Commoner

Joined: Thu Nov 06, 2014 11:29 am
Posts: 47
Location: Gilbert, Arizona
We set up a new Ubuntu Linux Server, just as a Test Web Server. We noticed that with Apache 1 Server, the files were located previously in /var/www/. However, with Apache2 we find that the fields are to be launched from /var/www/html. So, we put the same files that were in /var/www into /var/www/html. No workie!!!

We cannot connect to the MySQL database, nor can we login, of course. What did we do wrong?

Cecil

_________________
Cecil Champenois


Last edited by cecilchampenois on Tue Nov 18, 2014 11:38 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Nov 18, 2014 9:37 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
Sounds like there are a few things going on here. Have you confirmed that both Apache and MySQL server are installed and running? Can you log into MySQL as root?

_________________


Top
 Profile  
 
PostPosted: Tue Nov 18, 2014 11:41 am 
Offline
Forum Commoner

Joined: Thu Nov 06, 2014 11:29 am
Posts: 47
Location: Gilbert, Arizona
Yes, both Apache2 and MYSQL are running.

_________________
Cecil Champenois


Top
 Profile  
 
PostPosted: Wed Nov 19, 2014 9:34 am 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
Does MySQL have tables and data in those tables required by your application?


Top
 Profile  
 
PostPosted: Fri Dec 12, 2014 8:23 am 
Offline
Forum Commoner

Joined: Thu Nov 06, 2014 11:29 am
Posts: 47
Location: Gilbert, Arizona

_________________
Cecil Champenois


Top
 Profile  
 
PostPosted: Fri Dec 12, 2014 8:30 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
Ubuntu 10.04 shipped with Apache 2.2, not 1.x. Regardless, that wouldn't explain why you're unable to login to MySQL. One has nothing to do with the other. So, MySQL notwithstanding, do your PHP and Apache installs appear to be working properly (ie. index.php with phpinfo() in it displays correctly)? Are you able to login to MySQL via the CLI? That would at least narrow down where the problem lies.

_________________


Top
 Profile  
 
PostPosted: Fri Dec 12, 2014 4:39 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US

_________________
(#10850)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group