PDA

View Full Version : Help, I can't install PHP Link Directory


Helena
01-27-2006, 06:52 AM
Hello,

This is my first attempt at installing any kind of script and I've already run into problems :( so I'm hoping someone can tell me what I need to do.

I have created a MySQL database on my server.

I unzipped the file I downloaded from the PHPLinkDirectory website and uploaded all the files and directories onto my server, I created the directories that didn't exist in the temp directory and CHMOD'ed everything as per instructions and when I run the install file, I get a welcome screen with a next button, but the next button does not take me anywhere. I can't get beyond the welcome screen which has the title "Requirements" on it.

Four of the 10 requirements have red crosses next to them so I'm assuming it's those that are causing the problem, but I didn't think that I needed them all as I'm not running MSSQL or PostgreSQL, I'm using MySQL on the server. The four items that have crosses next to them are

Server API ==> Message says CGI mode is likely to have problems.
Session Save Path Writable ==> Message says Warning: /var/php_sessions not existing or not writable.
MSSQL Server Support ==> Message says Not Available.
PostgreSQL Support ==> Message says Not Available.

Can someone help with what I should do next? Please???

Regards,

Helena

VSDan
01-27-2006, 08:07 AM
Hi Helena:

You can ignore all of the messages except this one:

Session Save Path Writable ==> Message says Warning: /var/php_sessions not existing or not writable.

You need to ask your web host about your PHP config with your regard to sessions. For example, is session.save_path set properly in php.ini to directory that exists. And if so, is it writable.

Helena
01-27-2006, 10:34 AM
Hello Dan,

Thanks for the quick response. I will contact my hosting service and see what they say.

Kind regards,

Helena

Blame Me
01-29-2006, 01:47 AM
Content visible to registered users only.

I had the same problem, see this thread for more info

You have to ask your hosting company to switch this on for you, (make writable) and then follow some of the steps that are listed in the thread.

I hope this helps you. :D

Helena
01-31-2006, 02:25 AM
OK, so I contacted my host and they gave me the following advice:

"You need to include the following code in the configuration file of your software installation to save PHP sessions:

session_save_path("home/users/web/b1110/<mydir>/cgi-bin/tmp");
session_start(); "

I have read the thread by "Blame Me" and placed this code in the init.php file and the config.php file, but now when I run the installation, I get a blank page.

Also, I have more than one init.php and config.php file in different directories so which ones do I put the code in and where exactly does the code go? I've placed it at the top of all the files.

I'm confused :? . Please help.

regards,

Helena

Kevuk2k
01-31-2006, 08:49 AM
Content visible to registered users only.

Who's you host? You should not have to write any commands for the mysql to work unless they are using an obsolete version of mysql and I doubt this!? If you have the same mysql as I do then you should fly through installation. As for cgi-bin, this script doesn't touch it so they are way out on that advice.

Blame Me
01-31-2006, 08:42 PM
Content visible to registered users only.

Who's you host? You should not have to write any commands for the mysql to work unless they are using an obsolete version of mysql and I doubt this!? If you have the same mysql as I do then you should fly through installation. As for cgi-bin, this script doesn't touch it so they are way out on that advice.[/quote]
You should be placing the

session_save_path("home/users/web/b1110/<mydir>/cgi-bin/tmp");
session_start(); "

in the init.php file (which is in the folder where you keep the phpld directory).

I was told by tech support to place this in the config.php file (which is in the include folder where you keep the phpld directory).

Once this was done everything worked like a charm.

As for the cgi-bin/tmp section of the code path,this is the preferred place my host would like to keep things - I made the choice to leave it here. They did say that I could make a tmp (or whatever you care to call it) folder anywhere on the system as long as the session_save_path points to it - Like below:

session_save_path("home/users/web/b1110/<mydir>/where_ever/tmp (or whatever you care to call it)");
session_start(); "

My best bet would be to do a complete re-install:

Clean out your mysql database tables so there is nothing in there.
Remove the phpLD folders from the server.
Make the changes to your local copy of the files (session_save_path.............blar blar).
Upload all to the server and chmod to 777 the files listed in the install.txt file.
Run the set up.

If you have trouble after that you might want to ask an expert to do this for you - providing you offer a bribe off some nice new greenbacks (you never know they might do it for free.

Helena
02-01-2006, 03:08 AM
Hello,

Thanks again for the quick response, I will try the advice you have given me "Blame Me" and will let you know how I go. My hosting company (Bizland) have also said that if I have any further problems, they might look into it, so hopefully everything will work OK.

Your help is much appreciated.

Regards,

Helena

Blame Me
02-01-2006, 04:20 AM
Content visible to registered users only.

No problem :D

Its the first time I've done this sort of thing and I'm no expert either. I've had a look at the Bizland support pages and it brings up the same response as my hosting company www.fatcow.com, (see below). The only other thing I can think of is if you are using a Windows server and not a Unix one - its possible the command might be different, BUT I am not qualified to answer that.


Content visible to registered users only.

Helena
02-07-2006, 01:44 AM
hello,

just a quick note to let you know that I finally got the script working with the help of my hosting company - they set up a seperate php configuration file for my account so that the the "session_save_path..." stuff doesn't have to be added to the seperate files.

Hope this helps others with similar problems - contact your hosting company to set up the php configuration file for you. :D

Regards,

Helena