Moodle on Port 80

Moodle on Port 80

by Colin McGirr -
Number of replies: 5

I Currently have a Windows 2003 Web server running IIS 6 with serveral sites on it. I have 1 IP number and am using Host Headers for each site.

When i install Moodle and EasyPHP it tells me the Apache part will not run as another program is using port 80. When i change it to 8080 Moodle works and i can setup my database but then the screen goes blank and i cannot do anymore.

I ran moodle on a windows XP station and it worked great but now i want to put it online for the rest of my School to see it will not work.

Any help would be great, thanks

Average of ratings: -
In reply to Colin McGirr

Re: Moodle on Port 80

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
did you change your config.php file to reflect the change?

$CFG->wwwroot = 'http://mydomain:8080/moodle

(or whatever)

The other thing to consider is that this is not an optimal solution. You may find that port 8080 gets blocked by firewalls and that other users may not see your site. It is fairly straightforward to install PHP and Moodle under IIS - see the documentation (in a Wiki) here...

http://moodle.org/mod/resource/view.php?id=354
In reply to Howard Miller

Re: Moodle on Port 80

by Colin McGirr -

Thanks those notes seem to have almost sorted me out.

When i run the mysql command i get the following error message:

error 1044: Access denied for user :'@localhost' to database 'moodle'

When i run it on the internet i get an error message:

 PHP has encountered an access Violotion 017D73CD

Hope you can help, thanks

In reply to Colin McGirr

Re: Moodle on Port 80

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
did you change the root password? If you did, try...

> \mysql\bin\mysql -u root -p moodle

(you then get asked for the password)

if not

> \mysql\bin\mysql -u root moodle


not so sure about the access violation, it is almost certainly a permission problem but you need to pin down where. Check the events logs and see if there is anything more. There is some stuff in PHP FAQ's.....

"To solve this problem, inspect your php.ini, some paths variables like
upload_tmp_dir or session_save_path and others, must be configured to
use directories with write permissios for the http user."

which seems logical, make sure those directories exist and are writeable.

Also... are you using PHP 5.0.0?? There seem to be reports of bugs in this area.. allegedly fixed in CVS, but probably worth sticking with PHP 4 for now.
In reply to Howard Miller

Re: Moodle on Port 80

by Colin McGirr -

When i install mysql and check status it seems to be working ok.

When i run the myspl command and type

create database moodle;

i get the following error message:

error 1044 <42000>: Access denied for user :'@localhost' to database 'moodle'

I have attached a screen dump of my status window

Attachment status.JPG
In reply to Colin McGirr

Re: Moodle on Port 80

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
What command did you use to start the mysql client? I'm a bit worried about the 'Current user: ODBC@localhost' - what are you doing? I would suggest that you should start the client with something like...

> mysql -u root -p

you are simply not connected as a user with sufficient privileges.

NB. Its probably also a bit risky using an alpha version of MySql!!