We’re back with the continuation of our previous tutorials, this time we will put to use what we have learned from the previous two tutorials of the FTP-ing and creating a database. We can do just about any php scripts with MySql support, but on this tutorial we will be installing a directory script called phpLD the free edition. Ok, lets begin.
First let’s go to http://www.phplinkdirectory.com/ and will download the script and place into the folder we want. In this case I will place to the domain folder that i’m going to install the scripts to.

To the left page you can see where to download the free script Free Version phpLD2. Click on that and save to the folder where you will be able to remember and unzipped then Copy and Paste it to that folder.
You will probably now want to go to your cPanel (control panel) and create the database if you havent yet done so let’s do that now and just remember the information such as Username and Password and the Database name and write those information down on a notepad just incase if you have a need for them and in some cases you might.
Now that we have download the script and made the database we can now upload our scripts using the FTP.

As most new web hosting account, it will generally look something like what’s on the right side of the FTP. There is always a folder name cgi-bin and an .htaccess file. Most scripts comes with it’s own .htaccess file, so in this case we will over write it and we will ignore the cgi-bin as it isn’t important with what will be doing. Now the file is on the left that is you have already unzipped and it’s called phpLD 2.1.2. We can now click on the inside of that folder and begin dragging all the files or Right click with you mouse and Select All or Ctrl+A. See the image below.
Once we have selected all, we can now drag to the webserver andit will begin to upload, give it sometime to upload and do not interupt the process as this could time-out the transfer. As you begin to upload it a pop up will ask you if you want to over write it, click yes as this is the .htaccess file that came with your hosting account and we will replace it with the one that came with the script.
Now that’s finish uploading we again read what the Read Me file has to say on the proper way of installing the scipt. On the Read Me file or in this case it is called INSTALL.TXT. After it has completed the uploading process it say’s that you must give permission to some files or folders before you begin installing. In this case we wont just to show you what the installer will say.
Great all th files had been uploaded and we can now go to our domain and the script installer will appear and since we din’t give any permission on any of files or folder a message appear just like the one below and it will generally tell you which file togive permissions to.

In this case it tells us that we need to give permissions to this file or folders:
- include/config.php
- temp/
- temp/adodb
- temp/cache
- temp/templates
The image below I had went to the include folder and right click on config.php and click on Properties and click until I got the 777 permissions then click ok and go back.

The next folder we are going to five permission is the temp folder and give that the same permissions as we did with the config.php and we will repeat the steps with the rest of the folders within the temp folder and that should be it with the writting permission, then later we will need to go back to the config.php and bring it back to what it was which was at 644.
Now we just need to type the our domain again and it should take us to the installer steps.
If any of the folders are not green with the check mark on them, then we need to go back and give permission, if all is ok click next and we will input the MySql info that we made earlier and click on next hen after we need to give the final info it needs and this too we need to remember and to write it down on a notepad for future reference.
After we had given all the infos the final steps tell us to:
YOU MUST DELETE THE FOLLOWING FILE(S) BEFORE CONTINUING: /install/index.php (with this delete the entire install folder)
YOU MUST DROP WRITING PERMISSIONS TO FOLLOWING FILE(S) BEFORE CONTINUING: /include/config.php (this we will drop the permission back to 644)
Once all that is taking care of pretty much the script is installed and we can now login into the admin and play around with the settings and that is all there is to installing a php script.
Related tutorials:
FTP
Making a database