0

How To Install phpLD 2.1

Tutorials

A lot of people have been asking me to help them install phpLD after something I wrote about phpLD started appearing in the search engines (which contained "how to install phpld"). I am going to do a quick write-up which will hopefully help people who can't figure out how to install php link directory. This write up is being written for phpLD 2.1 but the same install procedures go for any version of phpLD and most other scripts. Note that there seems to be a problem with installing phpLD 2 and 2.1 on a subdomain powered by a VPS running plesk.

To download phpLD 2.1, click here

Step 1

Create a mySQL database and username.
In this example I am going to set up the database using cpanel, but you can do this however you like and from any control panel your server is using.

Go to your cpanel (youdomain.com/cpanel) and click on "MySQL Databases".

First thing we will do is create a database (in this example it is called testing)

After creating the database, we will need to create a new username and password for our database to use.

Now, we need to give this new username permission to access the database. Select the username you just created (in this example we used testuser) and add it to the new database (in this example "testing"). If "All" is not selected, please select it. Do not worry about the other check boxes.

After adding the username to the database, you should see something like this at the top of your screen

As you can see, your cpanel user name prefix appears in the connection strings. A lot of the time when someone is having trouble installing phpLD they forget to add the cpanel username prefix before their database name or username.

Step 2

Upload your files and edit the permissions
I'm not going to go into uploading your files as you should know how to do this

After uploading your files you need to edit the permissions on the file and folders below to 777

  • include/config.php
  • temp/
  • temp/adodb
  • temp/cache
  • temp/templates

The best way to do this is through Dreamweaver or an FTP client. Simply right click on the files and select all the checkboxes, or type "777"

Step 3

The web based installer
Luckily all versions of phpLD include a web based installer which makes configuration a painless point and click procedure.

To access the web based installer, go to the directory where you installed phpLD. For example, if you installed into your root folder, you would go to http://www.yoursite.com.. if you installed in the sub-folder "directory" you would go to http://www.yoursite.com/directory/...

After selecting your language, you should see a screen like the one below. On your server, you should not get the "CGI Mode is likely to have problems" message. If you do get this message, most likely you WILL NOT experience any problems with phpLD and you can continue the install. If you get a blank install page, try not installing on a sub-directory.

Recall earlier that we created the database "testing" and the user "testuser" (with the password apassword). Your login name for cpanel showed up as a prefix in the "connection string" that you saw in cpanel. YOU MUST include this prefix if it showed up in cpanel (in cpanel it shows the connection strings you can use to connect to your database after you have added a user).. Not adding this prefix is the reason most people who created a database in cpanel cannot get phpLD to install. Go ahead and fill out this information with your own database name, username, and password. USE LOCALHOST for the database server unless your host tells you to use something else (for example, go daddy requires you to use an ip address for database server, you can find this when you go to manage databases)

After the database screen you will be asked to create a login and password. You will use this when editing your directory at http://www.yoursite.com/yourdirectory/admin/

After this your taken to a screen congradulating you on a successful installation and configuration.

"YOU MUST DELETE THE FOLLOWING FILE(S) BEFORE CONTINUING: /install/index.php

YOU MUST DROP WRITING PERMISSIONS TO FOLLOWING FILE(S) BEFORE CONTINUING: /include/config.php"

Now we will delete /install/index.php and drop the writing permissions of /include/config.php (proper settings shown below).

There you go. phpLD is now properly installed and ready to go...

All you need now is a custom template, some categories, and some links!

tags:
Tutorials
 
Well, you are pretty much assured a top spot on the Google returns for this topic now. lol
 
posted 1333 days ago
Add Comment Reply to: this comment OR this thread
 
 
Yea all that keyword stuffing was pretty tough. Should do the trick now... I love owning the search results for everything.

Now as long as "how to install phpld" is not mentioned on digitalpoint.com I should be good (they will rank number 1 for ANYTHING)
 
posted 1333 days ago
Add Comment Reply to: this comment OR this thread
 
jesse said:
 
lol im a big DP user too. its funny cause you were the right google result for me
 
posted 1330 days ago
Add Comment Reply to: this comment OR this thread
 
 
digitalpoint fo life.. I love people asking for SEO help on digitalpoint for specific keywords, and they post the specific keywords.. then bam... digitalpoint beats out their site and they are screwed
 
posted 1330 days ago
Add Comment Reply to: this comment OR this thread
 
David said:
 
Thanks for writing these instructions. I have made a sticky with a link to this message here:
http://www.phplinkdirectory.com/forum/showthread.p...
Thanks,
David
 
posted 1264 days ago
Add Comment Reply to: this comment OR this thread
 
Oleksandr said:
 
Hallo. Thank for instructions. But i have an error — "Session Save Path writable? — X", and there is no "(/tmp)". If may be you know where can be the problem, email me please. Thanks!
 
posted 1262 days ago
Add Comment Reply to: this comment OR this thread
 
Michael Brown said:
 
I am getting the same error as Olekzanr - Session Save Path writable with a big red X.

Help?
Thanks!
 
posted 634 days ago
Add Comment Reply to: this comment OR this thread
 
wgrubbs said:
 
How can we get it working under an add-on domain through cpanel?
 
posted 1258 days ago
Add Comment Reply to: this comment OR this thread
 
 
You do it just like you would with the top level domain... The user is still localhost, database name and the user are the same
 
posted 1258 days ago
Add Comment Reply to: this comment OR this thread
 
 
Thanks for adding it David
 
posted 1258 days ago
Add Comment Reply to: this comment OR this thread
 
wgrubbs said:
 
I did that and I still get a white screen and cannot install it.
 
posted 1258 days ago
Add Comment Reply to: this comment OR this thread
 
mewa said:
 
Thenks for the help.
Im getting this error

Notice: SmartyValidate: [validate plugin] form 'install' is not registered. in /home/elalal5/public_html/libs/smarty/plugins/function.validate.php on line 49
1
Select the language for the installation process.

What do you make of it.
 
posted 1214 days ago
Add Comment Reply to: this comment OR this thread
 
Matt Ellsworth said:
 
Mine isn't working i'm getting a smarty error in the php logs - but the walk thru you did is fantastic!
 
posted 1206 days ago
Add Comment Reply to: this comment OR this thread
 
Col said:
 
Hi,

I uploaded. I installed. I did everything as instructed. It will not let me log in as admin. Even after trying a password reset. It says the following:

No permissions set for this user.

Col :)
 
posted 1171 days ago
Add Comment Reply to: this comment OR this thread
 
packratmag said:
 
Thanks for the help with the data base install. These instructions teamed with some of my own research made the install easy. I don't think I would have this running without your post. For those having difficulties as posted above, you may be interested in the following forum post: http://www.phplinkdirectory.com/forum/showthread.p...

Thanks again.
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
Col said:
 
Hi,

I ended up doing a complete re-install and now everything is sweet.

Thanks,

Col :)
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
 
Glad to hear everything is working now, must have missed your first comment. Packratmag, thanks a lot! And thanks for the helpful link
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
marzooq said:
 
hello i am trying to install version 2.1.2. and i did exactly wuts mentioned above. but i cant procede with the laguage page. everytime i click next the same page apears. pls help
 
posted 1133 days ago
Add Comment Reply to: this comment OR this thread
 
mirc said:
 
Very nice and detailed.
 
posted 1109 days ago
Add Comment Reply to: this comment OR this thread
 
James said:
 
I am getting the following error

Fatal error: Smarty error: [in install/main.tpl line 1]: syntax error: invalid attribute name: 'install/messages.tpl\' (Smarty_Compiler.class.php, line 1536) in /home/jeetloco/public_html/libs/smarty/Smarty.class.php on line 1095

What should i do now??????
 
posted 1094 days ago
Add Comment Reply to: this comment OR this thread
 
Leo said:
 
Hello. Thank for instructions. But i have an error ? "Session Save Path writable? ? X", and there is no "(/tmp)". If may be you know where can be the problem, email me please. Thanks!
 
posted 1092 days ago
Add Comment Reply to: this comment OR this thread
 
utwou said:
 
James, I had exactly the same problem, but I continued the installation and everything seems working ok.
 
posted 1070 days ago
Add Comment Reply to: this comment OR this thread
 
Jenny pretty said:
 
Hello. Thanks very much for instructions. But I have this errors and already posted on phpld forum but still does not get a solution yet.
When I enterred admin and got this:
Notice: SmartyValidate: [is_valid] form 'login' is not registered. in /libs/smarty/SmartyValidate.class.php on line 273

Do you know why it caused this error?

Thanks again for your detailed instructions.

 
posted 1056 days ago
Add Comment Reply to: this comment OR this thread
 
mirc said:
 
cool :)
thank you too muck
 
posted 1045 days ago
Add Comment Reply to: this comment OR this thread
 
GPT Directory said:
 
hi i successfully installed the phpld and its working fine , but can you tell me how to use alternate payment option, because i don't want to use paypal with my directory.
Thanks
 
posted 1042 days ago
Add Comment Reply to: this comment OR this thread
 
Selvam said:
 
Still i have problem with installing phpld in subfolder.When i type http://www.freewebdirectory.co.in/main/install
i got error 403 forbidden.Can anyone suggest me the solution???
 
posted 1018 days ago
Add Comment Reply to: this comment OR this thread
 
said said:
 
I created a database and username.Permission to some files have been done..Uploaded all files but still nothing.
I can't get in my install..if i type in mydomainname.com/install i get "page not found".

I have godaddy.Is it my server?

i don't understand
 
posted 1015 days ago
Add Comment Reply to: this comment OR this thread
 
Lori said:
 
Sorry for such a noob question but when you get to step3..where is this all happening at? In my file manager or where? I'm probably over-thinking it.
 
posted 989 days ago
Add Comment Reply to: this comment OR this thread
 
Willy Gavriluta said:
 
 
posted 986 days ago
Add Comment Reply to: this comment OR this thread
 
Antonio said:
 
Hi everyone, I get a require error, it can't find the config file, is it possible that is caused because I am trying to install in a wordpress subdirectory? any solutions or suggestions?
Antonio
 
posted 976 days ago
Add Comment Reply to: this comment OR this thread
 
Imobiliare said:
 
Hello.Thanks for instructions. But i have an error ? "Session Save Path writable? ? X", and there is no "(/tmp)".
 
posted 969 days ago
Add Comment Reply to: this comment OR this thread
 
Deepak Sakhrani said:
 
Hi! I just installed phpld 2.1 on my domain http://www.networkcomputersonline.com/directory I had a few issues using templates but finally I managed to get through it add then added a good number of directory categories. I did a trial and error for adding a few links and found below issues.:

1) I had to change the settings in submit.tpl for maxlength value from 5 to 6 as image verification was not taking input for more than 5 characters....

if any one has the same issue then please change value as below...



2) next when I tried to sign up for a featured link by paying from my own card to my own paypal account, I was getting the below error


Return to Merchant

The seller accepts encrypted website payments only. You cannot pay the seller through un-encrypted buttons. Please contact your seller for more details.

I read somewhere on support forum to add



above or below



I tried both the ways but still it does not help.

can any one assist me on this.
 
posted 965 days ago
Add Comment Reply to: this comment OR this thread
 
help please said:
 
Notice: SmartyValidate: [validate plugin] form 'install' is not registered.

function.validate.php on line 46
 
posted 951 days ago
Add Comment Reply to: this comment OR this thread
 
Bunga Seruni said:
 
mewa, i just repeated the install process from the 1st step, in my case it solved your problem.
good luck!
 
posted 857 days ago
Add Comment Reply to: this comment OR this thread
 
Cheap Hosting said:
 
I have tried and i think it works well.
 
posted 949 days ago
Add Comment Reply to: this comment OR this thread
 
plug said:
 
My installation is all correct except "Session Save Path Writable? " that make a warning "session.save_path () is not set"

Somebody help???
 
posted 944 days ago
Add Comment Reply to: this comment OR this thread
 
Web Hosting said:
 
I have installed my directory at http://directory.networkcomputersonline.com but I am not able to receive the submission notifications. I have tried all combinations of Email settings but in vain. Can anyone help me on this.
 
posted 944 days ago
Add Comment Reply to: this comment OR this thread
 
Search the Beast said:
 
I add this board and fixed problem please stop by and add helpful information for Others.http://searchthebeast.com
 
posted 940 days ago
Add Comment Reply to: this comment OR this thread
 
eddie said:
 
great site www.searchthebeast.com love what you have Done so Much to Do and See, I will tell others about this site and thanks for all the great Stuff.

and it's free

As this site grows it will be a great place to exchange information!

Keep up the good work!
 
posted 849 days ago
Add Comment Reply to: this comment OR this thread
 
Sandra said:
 
Hi Nice Explaination.I instal php v2 but i want to change templte.If you dont mine can you expain how to instal Free template (i.e,version 2 suppoted only)
 
posted 791 days ago
Add Comment Reply to: this comment OR this thread
 
search the Beast said:
 
Thank you for post. Please help exchange information by pasting on other great information at www.searchthebeast.com add yourwebsite business or articles of help to help others
 
posted 791 days ago
Add Comment Reply to: this comment OR this thread
 
chovy said:
 
"click here" link to download is not a link.
 
posted 709 days ago
Add Comment Reply to: this comment OR this thread
 
search the beast said:
 
please when post give good Details I have received some posts by their is not enough information to help with problem.

Visit search the beast and post list write go to www.searchthebeast.com

also try www.bannerhole.com blog your business or forum
 
posted 634 days ago
Add Comment Reply to: this comment OR this thread
 
Yusan Widjaja said:
 
I am getting the following error

Fatal error: Smarty error: [in install/main.tpl line 108]: syntax error: unrecognized tag 'l' (Smarty_Compiler.class.php, line 583) in /home/sloki/user/h10473/sites/mobiakses.com/www/libs/smarty/Smarty.class.php on line 1095

What should i do now??????
 
posted 585 days ago
Add Comment Reply to: this comment OR this thread
 
yopert said:
 
This tutorial is amazing!!! Thanks a lot for sharing it!!! I surfed all rapidshare and several of its search engines like http://rapid4me.com and found nothing that really might help me. With this one I solved all problems in no time!
 
posted 316 days ago
Add Comment Reply to: this comment OR this thread
 
Upendra Duwadi said:
 
Type your message here!
 
posted 154 days ago
Add Comment Reply to: this comment OR this thread
 
bhagwati said:
 
Type your message here!
 
posted 111 days ago
Add Comment Reply to: this comment OR this thread
 
RockDJ said:
 
how to change theme?
 
posted 58 days ago
Add Comment Reply to: this comment OR this thread
 

Search