If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Webserver at home.

Started by Hitesh Patel, Jul 04, 2022, 03:23 AM

Previous topic - Next topic

Hitesh PatelTopic starter

Hi,
I've gone through similar content and found nothing new, hence I need your assistance. My goal is to create a web server at home in order to host my site. However, I don't want to host it locally. Instead, I prefer to have general access with functionalities such as domain, PHP, mSQL, and so on. Can you please guide me on how to set things up? I'm still new to all of this.
  •  


samfrank

Firstly, you need to install CentOS Linux 32/64 bit in accordance with the server parameters. Once the installation is done, update the OS with the standard repositories that are already registered. This can be done by typing in the following command under root shell:

yum update 

Next, you must install LAMP packages by entering the following command:

yum install httpd httpd-devel httpd-tools mysql mysql-server php php-cli php-common php-gd php-mysql php-xml php-mbstring php-mcrypt
Finally, start Apache and MySQL by typing in the commands:

/etc/init.d/httpd start
/etc/init.d/mysqld start

Once LAMP is installed, it's essential to read through the dоcumentation before proceeding. All the best!
  •  
    The following users thanked this post: Sevad

Melek

To create a home server with shared access, you will need a computer with good system characteristics to pull the load, an external IP address, as well as installing and configuring programs with which the server will work. There are a lot of similar instructions on the Internet. There are no easy tips here. You need to figure it out step by step so that in the end the home server works stably and can pull heavy loads.
  •  

Ali_Pro

And I don't understand. What for?
You will need a channel from more than one provider, with good bandwidth, you will need power backup, you will need the server itself. It will take a lot of time to support purely technical issues.
It's easier to use regular hosting, or VPS...
Ali.
  •  

Vladimir

What's the point of bothering so much? If only you want to transfer work to your home?) And so first decide on the axis, if you know Linux, then it's better to do it on it, if not, then take up Windows, but you'll have to work so that it works fine with a lot of simultaneous connections. In general, this is a particularly thankless task.
  •  

Austin

Please note that the aforementioned method may not work on certain operating systems like Windows XP or ME because the autoexec.bat file belongs to MS-DOS system which does not exist in later versions of Windows. In such cases, create a "subst.bat" file with just one line of code - "subst F: C:\server" - and save it in the root directory. Then, add its shortcut to startup, and the batch file will be executed every time Windows starts. However, each time you run the file, an MS-DOS emulation window will open, which can be inconvenient to close every time you start the system. Thus, it is advisable to run the subst.bat file separately when necessary.

Now, let's proceed with the installation. To begin with, we need to install the Apache web server. The program downloaded is an installer that copies all the required files by itself. However, to set up the server exactly as per our requirements, follow these steps:

Installation of Apache:
Launch the Apache setup file and click on "NEXT" and "YES" buttons until reaching the installation path. By default, the installation path is "C:\Program Files\Apache Group\Apache," which isn't suitable. We need to install Apache on a freshly allocated drive F. Click on "Browse" and specify the path "f:\usr\apache." If there is no such directory, the system will ask if you need to create one, to which you must answer yes. The "usr" directory on the server is a service directory, lying separately from the directories where website files and other elements of the server are located. The "usr" directory on the server is like the "Windows\System" directory in Windows. You will encounter that directory later when administering your server. Press "NEXT," select "Typical," and wait for "NEXT" a couple more times for the server to be installed on our computer. All the required files will be copied, and you have successfully installed a personal web server on your computer where you can create unlimited websites with endless possibilities.

However, before creating websites, we need to install PHP and configure several settings in your server. Today, we won't delve into serious Apache settings (that's a topic for a whole book!); instead, we will perform the necessary actions sufficient for us to operate the home server efficiently.

Installation of PHP:
Create a "php" folder in the same "F:\usr\" directory and unzip the regular ZIP archive into the resulting "F:\usr\php" directory. In this directory, check for the php.exe file along with the ddl, extensions, java, Mibs, etc. folders. Congratulations, PHP is now ready to execute your commands.

Setting up the Apache server and PHP:
Now that we have finished with the software installation, we move on to setting them up. First, find the "php.ini-dist" file in the "F:\usr\php" directory and copy it to the C:\Windows folder, renaming it "php.ini" in the new location. This step will enable Apache and PHP to work together seamlessly.

Next, open the file "F:\usr\apache\conf\httpd.conf" in any text editor such as Notepad. The httpd.conf file contains all your server settings and hence requires you to set several parameters. Let's begin.
  •  

YARIGAVGAN


You need to download and install Windows Server on your machine, then register a domain, download the programs you need, for the same mySQL, configure them. After actually creating the page, CSS. Then, if you want, you can advertise the site.
  •  


aryashah113

Setting up a web server at home to host your website can be a fun and rewarding project. Let me guide you through the process.

1. Hardware Requirements:
  - A computer: You'll need a dedicated computer that will act as your server. It can be an old computer or a Raspberry Pi.
  - Internet connection: A stable and reliable internet connection is necessary for your web server to be accessible.

2. Choose an Operating System:
  - Linux is a popular choice for web servers due to its stability, security, and open-source nature. Consider using Ubuntu Server or CentOS, which are beginner-friendly distributions.

3. Install a Web Server Software:
  - Apache HTTP Server: It's one of the most widely used web server software. To install it on Ubuntu, open a terminal and run the command `sudo apt install apache2`.
  - Nginx: A lightweight and high-performance web server. Installation commands can vary depending on your operating system.

4. Set Up Domain Name and DNS:
  - Register a domain name: Choose a domain registrar (such as Namecheap or GoDaddy) to register a domain name for your website.
  - DNS Configuration: Point your domain to your home IP address using your domain registrar's DNS management interface.

5. Configure Port Forwarding:
  - Log in to your home router's configuration page and set up port forwarding for port 80 (HTTP) and/or port 443 (HTTPS) to forward traffic to your server's local IP address.

6. Install PHP:
  - If you're using Apache, install PHP with the command `sudo apt install php libapache2-mod-php`. For Nginx, use `sudo apt install php-fpm` instead.

7. Install Database Software:
  - MySQL/MariaDB is a popular choice for database management. Install it using the command `sudo apt install mysql-server` and follow the provided instructions.

8. Set Up Security:
  - Ensure that your server is secure by keeping the software up to date, configuring a firewall, and enabling HTTPS using SSL certificates (e.g., Let's Encrypt).

9. Upload Your Website:
  - Copy your website files to the appropriate directory on your server. For Apache, it is usually `/var/www/html/`.

10. Test and Troubleshoot:
    - Open a web browser and enter your domain name. If everything is set up correctly, you should see your website. If not, check the server logs for any error messages.

Remember to regularly update your software and keep your server secure by following best practices.

Please note that hosting a website at home comes with certain limitations, such as slower internet speeds, power outages, and potential security risks. It's recommended to use a professional web hosting service if you expect high traffic or require more reliable hosting.
  •  

anilkh7058

Hey I am looking for webserver at home. Which is the best please help me with that.
software development company
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...