# Installation with 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/quizly/installation/server-requirement>

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. You can also use Cloud Linux, Centos OS. in apache server root folder: /var/www/html ***OR*** /home/user/`quizly` Before installing, make sure mod\_rewrite is enabled.

Unzip the source file

```
cd /var/www/html OR /home/user/quizly
unzip Quizly.zip
```

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 /var/www/html OR /home/user/quizly
sudo chmod 775 -R /var/www/html OR /home/user/Quizly
```

**File and folder permissions for VPS**

{% hint style="info" %}
/bootstrap 777&#x20;

/public 777&#x20;

/storage 777&#x20;

/public/images 777&#x20;

/public/config.txt 777&#x20;

.env 777
{% endhint %}

Then restart Apache.

**After that follow Installation Steps :** [**https://mediacitydocs.gitbook.io/quizly/installation/installation-steps**](https://mediacitydocs.gitbook.io/quizly/installation/installation-steps)
