Been trying to use Linux more recently so I got Ubuntu running in VirtualBox. Now I'd like to install Apache, MySQL and PHP. I think the hard part will be configuring it all and getting it to run well but for now, installing each component just come down to using apt-get install, right? EDIT: I found a nice little tutorial explaining most of the process however there's one part after installing MySQL where it says to edit the bind-address in the my.cnf file so that "other computers on my network to view the server I have created". Do I need to do that if I'm just going to be playing around with it and don't really want other computers to view the actual website?
Yep. A great startup is here. Just enter this in your command terminal: http://net.tutsplus.com/tutorials/php/how-to-setup-a-dedicated-web-server-for-free/
I've already started followingthe instructions here http://www.howtoforge.com/ubuntu_lamp_for_newbies As I mentioned in my edited post above I've installed MySQL and now there's a step saying to edit the bind-address in the my.cnf file so that "other computers on my network to view the server I have created". It say's to replace the 127.0.0.1 with my IP address. Do I need to do that if I'm just going to be playing around with it and don't really want other computers to view the actual website? If so how do I get my IP address?
Leave it as is. It should be fine for what you want - give it a try. If you do want to view the website on your Host OS and not just the Guest OS (The Host OS being the OS you installed Virtualbox on and Ubuntu being the Guest OS) I think you'd need to change it to the internal Network IP. There is highly likely a command to run in terminal that can give you that, but I cannot remember off the top of my head.
Ok I left the bind-address as is but now the next step isn't working. When I run "mysql -u root" I get "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"
Fuzzy: Yes I set a password. Do I have to enter it in that command as well; I thought it would just ask me after entering "mysql -u root"
Still isn't working. This is what I get: $ mysql -u root -p password Enter password: password ERROR 1049 (4200): Unknown database 'password'
No . Only : Code: mysql -u root -p Or Code: mysql -u root -p databasename You don't enter the password on command line.
OK thanks I've everything installed and configured except phpMyAdmin which I've installed but havn't configured yet. I'm following another guide I found for this and it says: "...instead of manually editing the config.inc.php I can use the Setup Script. First I must manually create a folder config in the phpMyAdmin directory. This is a security measure." Problem is it doesn't say where this folder is. Did a search and there are quite a few phpMyAdmin directories (etc/phpmyadmin, usr/share/phpmyadmin, ...) and at least 2 of them have a config.inc.php file so I don't know which to use.