Apache, mysql issue!

Apache, mysql issue!

by Eliecer Acevedo Patiño -
Number of replies: 6

Hi, it seems to be that my hosting company don't care about my problem so I decided to hosted myself.

I got a static IP address from my cable company, and a router what else do I need to have a webserver runing for moodle??

Yesterday I upload Fedora Core 4, I was configuring apache and I was able to get http://localhost, apache it's working, and on that page saids read welcome.conf and you can put files on yout /var/www/html/ and I put the folder moodle in it, later I'll change to virtual server (public_hmtl).

Also I was trying to change the password for mysql but shows up error, even that mysql service is running.

So far, what can I do to have apache reading the index.htm or .html on the /var/www/html or am doing something wrong.

Thanks in advance to all.

Average of ratings: -
In reply to Eliecer Acevedo Patiño

Re: Apache, mysql issue!

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
"I was configuring apache and I was able to get http://localhost, apache it's working, ..."

What is the result if somebody in the internet types http://your_static_IP_address_here/ on a web-broser?

"Also I was trying to change the password for mysql but shows up error, even that mysql service is running."

How did you try? What was the error message?

For example, if you type "mysql -u root -p" on the command line do you get a prompt for a password, or does is login straight?

In reply to Visvanath Ratnaweera

Re: Apache, mysql issue!

by Eliecer Acevedo Patiño -

So far am trying to make moodle run locally usign http://127.0.0.1 and shows up apache page as well as http://localhost, now am able to see a local index page, and am passing the moodle folder into that directory.

Now am worried about mysql when I type mysqladmin -u root -p doesn´t ask for password, it goes stright, I have tried "mysqladmin -h localhost" but stll not able to connect, I type "mysqladmin status" and shows up error

mysqladmin: connect to server at 'localhost' failed

error: 'Access denied for user 'root'@'localhost' (using password:NO)'

am stuck, thanks for your help

In reply to Eliecer Acevedo Patiño

Re: Apache, mysql issue!

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
"when I type mysqladmin -u root -p doesn´t ask for password, it goes stright, I have tried "mysqladmin -h localhost" but stll not able to connect, ..."

I asked you to give the command
mysql -u root -p
(_not_ mysqladmin).

Post the exact response of your server.
In reply to Visvanath Ratnaweera

Re: Apache, mysql issue!

by Eliecer Acevedo Patiño -

still show up an error I did it several ways, I was able to change password but still unable to connect now typing password. Still reading manual but not sure what to do!!.

error 2002: can't connect to local mysql server (2)

Thanks

In reply to Eliecer Acevedo Patiño

Re: Apache, mysql issue!

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
error 2002: can't connect to local mysql server (2)

Is your MySQL server running?

Type "ps uax | grep -i mysql" and see whether you have MySQL-processes running. (I assumed that you are working on Linux).