hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : LAMP server from scratch
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

LAMP server from scratch

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-21-2008, 04:37 AM
nickoed nickoed is offline
New Member
 
Join Date: Mar 2008
Posts: 2

LAMP server from scratch


Hi all,

We have a spare powerconnect server in work and i was looking to set it up as a web server for a company intranet - more to gain experience in configuring a web server than anything else.

I decided to go with Fedora 8 as i'd used fedora previously and followed the LAMP tutorial on HowToForge.

However i've come across a problem which i just can't seem to resolve (after pretty intensive searching). So, i guess this post is in 2 parts.

Firstly, the error i'm getting is with mysql only. The error message is:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

I understand this may be a generic error but i'm not sure what other information would be useful.

Secondly, as this is my first web server - have I made the correct choice in terms of linix release or would something like CentOS be more suitable? I'd like to get this right from the start now that i have the chance.

Thanks in advance!

Nick.

Reply With Quote


Sponsored Links
  #2  
Old 03-21-2008, 06:16 AM
tamouh tamouh is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Location: Canada
Posts: 443
Check this tutorial:

http://librenix.com/?page=LAMP

__________________
Reliability • Performance • Integrity

Reply With Quote
  #3  
Old 03-21-2008, 06:23 AM
nickoed nickoed is offline
New Member
 
Join Date: Mar 2008
Posts: 2
That's the tutorial i followed. Both Apache and PHP work correctly but when mysql give this error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Nick.

Reply With Quote
Sponsored Links
  #4  
Old 03-21-2008, 07:07 AM
dexxtreme dexxtreme is offline
Aspiring Evangelist
 
Join Date: Nov 2005
Posts: 352
For a production machine I probably would have went with CentOS because the support lifecycle is longer than with Fedora.

For your mysql issues, where are you seeing that particular error? You will have to create separate mysql login for each script (blog, wiki, messageboard, etc.) that you want to run. You should never allow your scripts to connect directly to your server with the mysql root login. Also, on a new install I don't think that there is a default mysql password set, so you will need to change that as well.

Reply With Quote
  #5  
Old 03-21-2008, 07:28 AM
tix3 tix3 is offline
Aspiring Evangelist
 
Join Date: Aug 2007
Location: Greece
Posts: 389
For mysql you should use
Code:
mysql -u root -p
and the press enter.
The error says that you are not using passwords.
Then you have to create some logins and give them the appropriate priviledges.

__________________
NOT a webhost!helping here just for the fun of it!
G(r)eek inside.


Reply With Quote
  #6  
Old 03-21-2008, 12:50 PM
applicurearun applicurearun is offline
WHT Addict
 
Join Date: Mar 2008
Location: kolkata, India
Posts: 102
Check with the FAQ of the hosting provider for their MySQL / vServer stuff. Maybe you just need to add MySQL or turn on the service from the WHM ..

__________________
Sysfirm
So you think your server is secure?
Try our security Service
With SysFirm

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
GoGrid Launches Free Cloud Migration Service through Racemi Partnership Web Hosting News 2013-04-10 11:16:38
50c21c1b-2fc0-46e3-baa6-26e245a79943 Listing 2013-03-05 18:22:56
Web Host AtomicVPS Launches OnApp-Powered Cloud Hosting Services Web Hosting News 2012-06-20 15:59:45
Web Host 1&1 Enhances Dedicated Server Line with 32 Core, 64 GB RAM Server Web Hosting News 2011-12-20 15:30:05
DiscountASP.NET Launches Free Beta for Microsoft SQL Server 2012 Hosting Web Hosting News 2011-12-13 22:02:03


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?