How to Install Prosper202 on Nginx powered VPS

It has been nearly a ten months since my post of recommended unmanaged VPS for Prosper202. I was planning to give you guys a Prosper202 installation tutorial sooner than this. I didn’t have time to do it. But today, I’m going to give you a step by step tutorial on how to install Prosper202 on your Nginx powered VPS.

Looking for FREE version of Prosper202? My install Prosper202 on VPS or shared hosting service comes with last FREE version (v1.9.30) of Prosper202.

You’re probably thinking, what’s a Nginx powered VPS? Nginx is a web server, just like Apache. But only faster than Apache. After installing Prosper202 with this configuration, you’ll be able to track few million hits a day without any issues.

Although this tutorial still works perfectly, it’s outdated. There are newer and better versions of software out now and this tutorial installs bunch of old software. Please follow How to Install Prosper202 with Virtualmin and Nginx for updated tutorial.

Now before I start, I’m going to assume few things. I’m going to assume that you’ve already bought a VPS with Ubuntu 12.04 as it’s OS, you know how to connect to your VPS with Putty, the SSH client, your domain is pointing to your VPS (You should check your registrar’s knowledge base for this) And you’ve installed Nginx, PHP and MySQL on your VPS. If you haven’t done any of those, you must stop right here and complete all four of them in that order before going any further.

So let’s start by installing ZIP. You’ll need it to uncompress Prosper202 installation files later.

sudo apt-get install zip

You may add 10-15 other sites to this VPS, each one of them will need it’s own directory to keep it’s files. So let’s give Prosper202 it’s directory. And also a directory for it’s logs, make sure you replace example.com with your domain name or subdomain.

sudo mkdir -p /var/www/example.com/htdocs/ /var/www/example.com/logs/

Navigate to that directory,

cd /var/www/example.com/htdocs/

Execute following commands one by one to download Prosper202 installation package, unzip it, move files to root directory of domain and give file ownership to Nginx.

sudo wget -O prosper202.zip http://my.tracking202.com/clickserver/download/latest
sudo unzip prosper202.zip
sudo rm prosper202.zip
sudo chown -R www-data:www-data /var/www/example.com/

Since everything is in place now, next step is to create a MySQL database. Login to MySQL as root user,

mysql -u root -p

Logged in to MySQL, running following command will create a full privileged MySQL user ‘db_user’ with password ‘db_pass’. You should set your own values before executing this command.

grant all privileges on *.* to db_user@localhost identified by "db_pass";

And following command will create a database named ‘db_name’. Make changes and run the command. Please make a note of these information as you’ll need it later.

create database db_name;

Now exit MySQL.

quit

Now you need to create a Nginx configuration file for your site to let Nginx know that you need all requests to example.com to be redirected to it’s root directory. So let’s create a new file,

sudo nano /etc/nginx/sites-available/example.com

Paste following configurations to the file with necessary changes to the domain name.

server {
        server_name example.com www.example.com;

	access_log   /var/log/nginx/example.com.access.log;
	error_log    /var/log/nginx/example.com.error.log;

        root /var/www/example.com/htdocs;
        index index.php;

        location / {
                try_files $uri $uri/ /index.php?$args; 
        }

        location ~ .php$ {
                include fastcgi_params;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
        }
}

Hit Ctrl+X to close the file. Give following command to enable the virtual host.

sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/

Now reload Nginx,

sudo service nginx reload

Last step is to make some changes to php configuration file. Open php.ini in nano text editor,

sudo nano /etc/php5/fpm/php.ini

Search for following line (Ctrl+W),

short_open_tag = Off

Delete the ; from the beginning of the line if there’s any. Change Off to On.

Now search for ‘date.timezone =’, remove ; from the beginning if there’s any. Add your timezone to the file. it will look like below,

date.timezone = US/Pacific

hit Ctrl+X to close the file and you’re good to go.

Restarting PHP5 will apply above changes to the server.

sudo service php5-fpm restart

Open your domain a browser window. If you’ve done everything correctly, you’ll see Prosper202 web installer. Provide what it asks from you and you’ll have your own Prosper202 installation in less than 5 minutes.

Tharindu

Hey!! I'm Tharindu. I'm from Sri Lanka. I'm a part time freelancer and this is my blog where I write about everything I think might be useful to readers. If you read a tutorial here and want to hire me, contact me here.

Related Articles

25 Comments

  1. Good tutorial! now im trying to figure out how to point my domain to VPS [Idea for new post maybe]…than i will follow your tutorial to configure and install Prosper202 on sub-domain……………. which control panel you recommend for ubuntu 12.04?

    Greetings

  2. Hi. Does it make sense to use nginx as a front end proxy for apache? Would that be any faster than just using nginx since prosper doesn’t have a lot of static content?

  3. Hello, Im new, did well several steps, but the command sudo nano.., “sudo: nano: commad not found” message appears. can you help me please?

  4. Nice tut. I am looking to install iMobiTrax on my unmanaged vps, is the installation process similar to p202?

  5. I did everything but get this error and do not know how to fix it:

    There does not seem to be a 202-config.php file. I need this before we can get started. Need more help? Contact Us. You can create a 202-config.php file-through a web interface, but esta does not work for all server setups. The safest way is to manually create the file.

    Please help me.

  6. Great tutorial, can you post another describing how to update to latest version of Prosper 202. The one click upgrade is not currently working.

    Excellent work thanks!

  7. Thanks great tutorial!

    Just a question i have like 4 running websites on shared hosting with HostGator(Hatching Plan), if i go to InterServer VPS would this increase my overal performance?

    Thanks!

  8. Thanks for the tutorial Tharindu I have my P202 runing, can you explain how to secure the P202 instalation? I tried to secure the login page using .htcaccess and .htpasswd, I followed another tutorial but it didn’t work and I think that it may be because of the step where you create the file that requests to example.com to be redirected to it’s root directory. Thank you!

  9. Hi there!
    Thanks for the instructions, everything worked out, except for the fact that Prosper202 is now a paid service, so when i go to my domain now I have to fill in the API key. Can you explain to me how to install the latest free version of Prosper?

    Best regards,

      1. Thanks for the quick response! If I find a download link for it, am I able to install it more or less the same way you described in your tutorial?

          1. I have found v.1.7.2 on Github and succesfully installed it. But I am unable to find v.1.9.3.0… are you willing to send it to me perhaps? Or know where I can find a download link? Thank you,

          2. Alright I will order this service from you, do I have to tick the box ‘Setup VPS with Virtualmin’ if I want to have prosper202 on my digitalocean droplet, or does the base price of 5$ also do that? Because I don’t know what virtualmin is.

          3. It’s alright for me to not have a control panel. But is it a problem that I already have v.1.7.2 installed? Should I remove that first? Or is that something you would do?

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button