File size: 2.25Kb
Step 1 - Uploading the Files
Firstly, please note that script 2 is better, more secure and easier to setup. This one is a little bit more in depth and requires more work.
Begin by opening FileZilla and connecting to your server. Upload all the files and folders except for 'installation'. This should be pretty straight forward.
Step 2 - Uploading sqldump.sql
Firstly create a mySql table. This can often be done from the 'mySql' page. It does not matter what name you enter, or are given.
Now, find phpMyAdmin in your hosting control panel. (Have to be vague, as it depends from host to host.)
Once logged in, select the database from the drop-down list from the left section of the page.
Now, click SQL from the top menu of the main section. Use the Location of the textfile select the file to upload (sqldump.sql). If asked to choose compression, choose None! Now, upload the file.
(Comment >> Yes I know this can be done through shell, but it's easier this way)
Step 3 - Editing dbconnect.php
In the folder in which you extracted the files on your local computer, open dbconnect.php in either Notepad or Dreamweaver.
You will be presented with something similar to
Code:
<?php mysql_connect('localhost','root','asdfgh');
mysql_select_db('ptcinv'); ?>
Update the 'root' to the username that you entered or were given when creating your database. Do the same for 'asdfgh' for the password and 'ptcinv' for the name of the database. eg
Code:
<?php mysql_connect('localhost','username','password');
mysql_select_db('database'); ?>
Once edited, reupload this file to your server through FileZilla, over righting the old one.
Step 4 - Editing vars.php
Now open vars.php in NotePad or Dreamweaver and edit it. This one is pretty straight forward. Once done editing, save and then reupload, over writing the old file.
Step 5 - Password protect the admin folder.
Yes, I know, this script is a little lame. In your cpanel (or panel offered), go to either a password protect folder page, or to the file browser and password protect your 'admin' folder.
Step 6 - Login to admin and go
Now, navigate to www.yoursite.com/admin and enter the password you set for the admin folder. You can control the PTC site from this admin folder.
Step 7 - Advertisers
Scroll down.