I am new to Ubuntu Server, and in general with servers, so consider me as a beginner... (But, I know how to use the terminal.)
Note: I use a router, not a modem nor a broadband connection. The internet connection speed is VDSL (50MBPS)
Now, the Question:
I am going to set up a server using an old PC, and do the following steps:
Install Lubuntu (Because the PC is a low-end netbook)
Install TaskSel (sudo apt-get install tasksel)
Run TaskSel (sudo tasksel), select OpenSSH and click Install
Update the software
Install the required server software (sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server)
I will run "ifconfig | grep inet" to find the IP, and test the IP to another PC on the Local Network to see if it works. Logically, it will so the "It Works!" page.
I will restart the PC.
I will install WordPress and create a database for it.
I will move WordPress files to the /var/www directory and gain access to it by using the following commands:
sudo usermod -g www-data [YOUR USERNAME]
sudo chown -R www-data:www-data /var/www
sudo chmod -R 775 /var/www
That's the step I need help. I need to set the IP as static, but I don't know if this has to be done from the router settings, from Lubuntu Settings, or from both. So, please tell me how to do that.
As I read, to make the site accessible from worldwide, I need to create a DMZ. And to do this, I will need to go to the router settings, find DMZ settings, and add the IP on the field there
Thanks in advance for help.
Also, I have searched the forum, and found interesting stuff, but I couldn't find step-by-step answer to the step 10. Sorry if there is one answer that is step-by-step for my question and I didn't find it.