Testing Ubuntu Server and Networking, PHP5,Apache2,MySQL
Want to test out Ubuntu? Get VMware Player and this Virtual Appliance:
Networking In Ubuntu 6.10, Edgy Eft:I don't cover DHCP here, I don't know why you'd want that for a server...
Setting a static IP in ubuntu 6.10 Edgy Eft:
Assuming your NIC is eth1, if yours is eth0, use that instead :)
Edit /etc/network/interfaces and add the following at the bottom:
auto eth1
iface eth1 inet static
address [IP]
netmask [netmask - i.e. 255.255.255.0]
network [network ip, i.e. 192.168.0.0]
broadcast [broadcast address, eg. 192.168.0.255]
gateway [gateway IP (Router/Modem)]
dns-nameservers [DNS-ServersIPs]
Now to see the changes
#sudo /etc/init.d/networking restart
PHP5 / Apache 2 / MySQL with Ubuntu 6.10 Edgy Eft
I haven't fully tested this yet.
I Got PHP5, Apache2, and MySQL up and going in seconds.. (I'm scared too)
You'll probably want to be able to shell in:
#sudo apt-get install ssh
Next, we'll install MySQL 5
#sudo apt-get install mysql-server
Next we'll install the Apache2 web server
#sudo apt-get install apache2
Then PHP 5
#sudo apt-get install php5
Some extra required modules
#sudo apt-get install libapache2-mod-auth-mysql
#sudo apt-get install php5-mysql
That should be it, you should be able to surf to your IP and see apache display something.
Networking In Ubuntu 6.10, Edgy Eft:I don't cover DHCP here, I don't know why you'd want that for a server...
Setting a static IP in ubuntu 6.10 Edgy Eft:
Assuming your NIC is eth1, if yours is eth0, use that instead :)
Edit /etc/network/interfaces and add the following at the bottom:
auto eth1
iface eth1 inet static
address [IP]
netmask [netmask - i.e. 255.255.255.0]
network [network ip, i.e. 192.168.0.0]
broadcast [broadcast address, eg. 192.168.0.255]
gateway [gateway IP (Router/Modem)]
dns-nameservers [DNS-ServersIPs]
Now to see the changes
#sudo /etc/init.d/networking restart
PHP5 / Apache 2 / MySQL with Ubuntu 6.10 Edgy Eft
I haven't fully tested this yet.
I Got PHP5, Apache2, and MySQL up and going in seconds.. (I'm scared too)
You'll probably want to be able to shell in:
#sudo apt-get install ssh
Next, we'll install MySQL 5
#sudo apt-get install mysql-server
Next we'll install the Apache2 web server
#sudo apt-get install apache2
Then PHP 5
#sudo apt-get install php5
Some extra required modules
#sudo apt-get install libapache2-mod-auth-mysql
#sudo apt-get install php5-mysql
That should be it, you should be able to surf to your IP and see apache display something.
Comments