How to setup a webhost on Debian
Requirements:
FileZilla
Putty
CloudFlare
A domain
A debian server (ofcourse)
Requirements:
FileZilla
Putty
CloudFlare
A domain
A debian server (ofcourse)
First you need to login into putty and do this.
- apt-get update
- apt-get upgrade
Write Y and hit enter!
- apt-get install apache2 php5 libapache2-mod-php5
Write Y and hit enter!
Then y and hit enter!
- apt-get install mysql-server mysql-client php5-mysql
Write Y and hit enter!
Then y and hit enter!
Write a password that you will use.
- apt-get install phpmyadmin
Write Y and hit enter!
Then y and hit enter!
When you have done all that, to get phpmyadmin to work must you write this:
- /etc/init.d/apache2 restart
- echo include /etc/phpmyadmin/apache.conf >> /etc/apache2/apache2.conf
And now is that done! Now can you go to ur VPS IP and see something like this:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
And now you just need to setup the cloudflare & point your domain to the cloudflare's nameservers.
When cloudflare is ready, go to DNS and point www and yourdomain.com/.net/whatever to the VPS IP.
To upload ur website, go to "var/www/" in FileZilla.
Then are you ready to go!


![[Image: Wjad0k2.png]](https://i.imgur.com/Wjad0k2.png)
