Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUTORIAL] [MYSQL] How install php, mysql & phpmyadmin on Debian

How to setup a webhost on Debian

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!

Nice tut i always wanted to make my own hosting server thanks for the info
[Image: Wjad0k2.png]
You should include "mysql_secure_installation", also swap the restart and the echo rows.
You see, Doctor, God didn't kill that little girl. Fate didn't butcher her and destiny didn't feed her to those dogs.
If God saw what any of us did that night he didn't seem to mind. From then on I knew... God doesn't make the world this way.
We do.
(Sep 15, 2015 12:27 PM)Squito Wrote:  You should include "mysql_secure_installation", also swap the restart and the echo rows.

I was going to add that, but I was to tired & lazy for that at that moment.

Im going to do it 👍


Possibly Related Threads...
Thread / Author Replies Views Last Post
by OozeDec 23, 2016 02:29 PM 1 154 Dec 23, 2016 02:29 PM
Last Post: Web-Weave
by bwtOct 29, 2014 10:54 AM 13 188 Oct 29, 2014 10:54 AM
Last Post: Squito
by Chill BraAug 30, 2013 06:00 AM 3 115 Aug 30, 2013 06:00 AM
Last Post: slapmyduck