Installation on Apache

Apache is a popular and widely-used web server software. It is open-source software. It is known for its reliability, flexibility, and security, and is used by many websites and web applications to serve their content to users.

Apache can be used to serve a wide variety of content, including HTML pages, images, videos, and dynamic web applications. It can also be used to handle secure connections using the HTTPS protocol, and it supports a wide variety of programming languages and technologies, such as PHP, Perl, and Python.

It can be run on a variety of operating systems, including Windows, Linux, and macOS.

One of the most popular features of Apache is the ability to use modules to add additional functionality. There are many modules available, such as mod_rewrite, mod_security, and mod_ssl, which can be used to implement features such as URL rewriting, security enhancements, and SSL/TLS support.

Overall, Apache is a robust, reliable, and widely-used web server software that is well suited for serving a wide variety of content. It is also easy to configure and customize to suit the needs of different websites and web applications.

First check all server requirements is OK.Read More: https://mediacitydocs.gitbook.io/next-hour/installation-1/server-requirements

For VPS use Ubuntu 20.0 OR 22.10 OS, Also install Apache 2, PHP 8.1.13, MySQL 5.7, Phpmyadmin, Zip, Unzip and all above mentioned extensions. Before installing, make sure mod_rewrite is enabled.

Unzip the source file

cd /home/user/
unzip nexthour.zip

/home/user/nexthour, you can configure Apache virtual host as follows (remember to point the Document Root to the public folder of the source)

<VirtualHost *:80>
ServerName yoursite.com
DocumentRoot "/home/user/nexthour/public"
Options Indexes FollowSymLinks
<Directory "/home/user/nexthour/public">
AllowOverride All Require all granted
</Directory>
</VirtualHost>

Change the directory/file’s owner to Apache’s running user (www-data for example), to make sure it has proper permission on your source files

sudo chown www-data:www-data -R /home/user/eClass
sudo chmod 775 -R /home/user/nexthour

Then restart Apache.

After that follow Installation Steps : https://mediacitydocs.gitbook.io/next-hour/installation-1/installation-steps

Last updated