- See to it that you are root
- Execute: cd /usr/ports/www/apache22
- Execute: make install clean
- Choose any options that you like for Apache
- Execute: ee /etc/rc.conf
- Add the following line to rc.conf
- apache22_enable="YES"
- Make sure that you're still root
- Execute: cd /usr/ports/databases/mysql51-server
- Execute: make install clean
- Execute: ee /etc/rc.conf
- Add the following line to rc.conf
- mysql_enable="YES"
Ok, so try and access the website by punch in the IP of your server in a browser somewhere. "It works!" Cool!
For MySQL i recommend downloading MySQL GUI Tools. Hook MySQL Administrator to your server. This will probably not work because you haven't set your password yet. Also your MySQL server isn't configured for remote connections.
Make this work was a bit of a problem, and it took it's time. I didn't make notes of what I actually did to make it work :|. However I think that I started out by setting the password and then I logged on to webmin.
Setting password:
- Fire up the terminal and login as root
- mysqladmin -u root password newpassword
Configure:
- Login to webmin
- Unfold "Servers"
- Clicked MySQL Database Server (However the module doesn't work)
- Click the "Module Config" at the top left corner
- Find "MySQL configuration file" and change the current value to "/var/db/mysql/my.cnf"
- Click "Save"
- Back to the main menu of MySQL in webmin
- Click "User Permissions"
- Click "Create new user"
- Choose username, my choice was developer
- Set a password
- Either you can set a fixed IP or you can put wildcards in it I put 192.168.0.% which means that I can access MySQL from any machine on my LAN.
No comments:
Post a Comment