Contents

Introduction

How to switch your local repository from Apache to Nginx?

Introduction

This document describes how to modify a local repository to use Nginx instead of Apache.

How to switch your local repository from Apache to Nginx?

1. Create a backup of Apache so you can reuse in Nginx with:

- mkdir /usr/local/cliqr/bundle-backup

- cp -rf /var/www/html/* /usr/local/cliqr/bundle-backup

2. Stop Apache service with the command apachectl stop.

3. Confirm Apache has stopped with ps -ef | grep apache or ps -ef | grep httpd.

4. Move items to /tmp folder with the command mv var/www/html /tmp.

5. Delete Apache with the command yum erase httpd.

6. Install Nginx with the commandyum install nginx.

7. Move backup to the new installed Nginx with the command cp -rf /tmp/html/* /usr/share/nginx/html/.

8. Restart Nginx serve with the command service nginx restart.

9. Verify Nginx runs with the command ps -ef | grep nginx.

10. Verify it's working with:

- wget http://127.0.0.1/index.html

- wget http://localhost/bundle****/cliqr-bootstarap.py
If this downloads the python script, then everything should be up and running.

Ensure that you don’t have any proxy settings. If you continue to see proxy settings, you can issue these commands to unset them:

- unset http_proxy

- unset https_proxy