Thursday, February 5, 2009

These mysql statements will add a user to your database.


create database ex_database;

GRANT ALL PRIVILEGES
ON ex_database.*
TO 'my_user'@'localhost'
IDENTIFIED BY 'my_password'
WITH GRANT OPTION;

Wednesday, February 4, 2009

Only one usage of each socket address is normally permitted. : make_sock: could not bind address 0.0.0.0.:80 no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press
key to ext. ...

You are probably getting that error message when you run Apache for the first time.

Your easiest solution to this is just...

go to your  httpd.conf file

change this:
[

Listen 80

ServerName your-server-name:80

]

and then replace the 80 with the port number you want to use:

Listen 8080

ServerName your-server-name:8080

or

ServerName localhost:8080

That should do the trick. Enjoy!

This is a starter example that will show you what php is all about. I hope you try this example out.

[?php


//Displays hello world in the browser window.
echo "hello world";

?]