LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2010, 02:31 PM   #1
iWant2Know
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
I'm so lost!!!


I am trying to create a server on my laptop. I have a windows 7 OS. I have downloaded Apache HTTP Server, MySQL Server and PHP. My Apache seems to be working well at one point ie. when I use the http://localhost "It Works" does show in the browser. When I attempt to sign on the MySQL Server with my password the command prompt shuts off so quick I can't even read what the window says. The MySQL server seems to be running in the task manager under mysqld.exe. I am not sure what else to do.

End goal: have mysql running and adn communicating with php on apache.

Thanks
 
Old 11-24-2010, 02:34 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi there! Welcome to LinuxQuestions.org.

Maybe this will seem a daft question, but: are you trying to accomplish this stuff, on the Windows 7 OS? It looks that way.
While there may be some folks around here who can help you, I would not hold my breath waiting for them - this is a Linux forum, not Windows.

If there's Linux involved in this situation somewhere, please explain where and how.

Thanks, and kind regards.
 
Old 11-24-2010, 02:57 PM   #3
iWant2Know
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
yes it is windows...
 
Old 11-24-2010, 03:30 PM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Whilst I no longer use Windows at all and, as has been said, this is a linux forum, I used to use Windows and when I did I found XAMPP to be a very easy way to get Apache, Mysql, PHP and other associated components working. There is a version available for Windows 7. There's information here and here about this useful product.
 
Old 11-24-2010, 03:35 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
on windows i have only used the MinGW bash to talk to it ( way way better than the thing MS calls a terminal )

have you read the documentation ?
on the Apache web site ?
the Mysql site?
the phpMyAdmin web site ?

as to getting the mysql and httpd service going on Win7 ?????? ask MS ( i only did it on XP)
 
Old 11-24-2010, 05:24 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Based on what you've said, I would strongly urge you to follow bgeddy's advice:

1. UNINSTALL Apache, PHP and MySQL

2. Reboot Windows

3. Install XAMPP (which includes Apache, PHP and MySQL together, in one easy-to-manage package)

IMHO...
 
Old 11-25-2010, 01:32 AM   #7
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by GrapefruiTgirl View Post
Hi there! Welcome to LinuxQuestions.org.

Maybe this will seem a daft question, but: are you trying to accomplish this stuff, on the Windows 7 OS? It looks that way.
While there may be some folks around here who can help you, I would not hold my breath waiting for them - this is a Linux forum, not Windows.

If there's Linux involved in this situation somewhere, please explain where and how.

Thanks, and kind regards.
At the top of every thread in this "department" it's written:

Quote:
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
...
I can't help the OP since I do not run Windows.
 
Old 11-25-2010, 05:18 AM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by Sergei Steshenko View Post
At the top of every thread in this "department" it's written:
Thank you very much. I am quite aware of what it reads in the sticky. And had this thread arrived in the "General" forum I would not have written anything.

Since the thread is in the /Programming forum, my post was a (perhaps poor) attempt at determining whether there was a 'programming' component to the question (in which case the thread may stay right here, but there does not appear to be such a component) or if it is neither 'programming' nor 'Linux', in which case it will move to "General", since it is purely a Windows question..
Quote:
...
I can't help the OP since I do not run Windows.
Neither do I. That makes us equally helpful here.
 
1 members found this post helpful.
Old 11-25-2010, 05:49 AM   #9
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Help with code to access the database with PHP sounds like it might belong in this forum. Setting up the client/server communication and client authentication I'd say are outside the scope of this forum and as it's on windows which may very well be different to how the linux version works, it's probably outside the scope of LQ completely. Probably better to ask on a site frequented by DBAs (or dare I say: even RTFM! )

One thing to watch out for is that mysql doesn't do native platform authentication, it has it's own internal set of users and passwords. Perhaps this is what is causing the problem.
You could try something like "mysql --user=root" and see what happens, but mysql on Windows may very well be different to linux.

Last edited by GazL; 11-25-2010 at 05:50 AM.
 
Old 11-25-2010, 11:14 AM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
as i recal the MS Windows mysql install uses as the install default
user=user
password = password

you then need to CHANGE THEM
it is one of the very very first things in the documentation
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost bookmarks & lost email accounts in Evolution IdahoSilverSage Ubuntu 1 07-12-2009 04:07 AM
HDD partition lost. xandros DVD + me = lost data lein Linux - General 18 05-22-2007 05:47 AM
Bind have lost some zone in named.conf & lost db file achilles Linux - Enterprise 0 04-19-2007 06:22 AM
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 06:38 AM
power lost from cable modem, interface lost a10392 Linux - Networking 4 11-16-2004 09:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration