Trouble with Setup.php...

Discuss and get help installing, using and configuring SiT!

Trouble with Setup.php...

Postby eulic_mcgee » Sat Dec 08, 2007 10:31 am

I have installed PHP successfully (I think???) on Windows 2003 Server Standard. When I open IE and try to open the setup.php script, it goes to the Open/Save/Cancel dialogue. When I click on 'Open', a window flashes and then the 'Open/Save/Cancel' dialogue reappears. Click 'Open again and the same thing happens.

Where am I going wrong???
eulic_mcgee
Newbie
Newbie
 
Posts: 8
Joined: Sun Feb 01, 2009 9:49 pm

RE: Trouble with Setup.php...

Postby ivanlucas » Sat Dec 08, 2007 11:27 am

Your PHP is definitely not installed properly, that shouldn't happen.

I'd recommend creating a file called phpinfo.php in your web root with the following text inside

<?php phpinfo(; ?>

and trying to get that page to display first, before attempting to install SiT.

A lot of people use WAMP to run Sit on Windows. www.wampserver.com/en/

Good luck.

Ivan

Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

RE: Trouble with Setup.php...

Postby ivanlucas » Sat Dec 08, 2007 11:27 am

Your PHP is definitely not installed properly, that shouldn't happen.

I'd recommend creating a file called phpinfo.php in your web root with the following text inside

edited

and trying to get that page to display first, before attempting to install SiT.

A lot of people use WAMP to run Sit on Windows. www.wampserver.com/en/

Good luck.

Ivan

Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

RE: Trouble with Setup.php...

Postby stonej55 » Sat Dec 08, 2007 5:51 pm

I agree with Ivan, i have installed SiT on a couple of Windows servers. Just install WAMP and then unzip SiT to c:wampwwwsit and then go to your IPaddress/sit

The setup.php will tell you if any of the settings are wrong. One problem i had was the apache settings need changing so that all your network can see it apart from just 127.0.0.1, but WAMP is very easy to setup.

Thanks

Jeff
stonej55
SiT! Regular
SiT! Regular
 
Posts: 41
Joined: Sun Feb 01, 2009 9:49 pm

RE: Trouble with Setup.php...

Postby Anonymous » Sun Dec 09, 2007 2:03 pm

OK... Thank you, I found the problem. It was IIS. I installed WampServer and like it much better. I finally got the setup.php up and running. It is coming up with an error:

"We couldn't find configuration defaults, this probably means your include_path is wrong. Your current include path is .;C:php5pear
SiT! Requires it's libraries to be in the include path which is specified in your php.ini file, modify your php.ini and set the new include path to point to the includes directory"

Now, going through the c:wamp directory and found two php.ini files and a PhpForApache.ini. I have changed the include_path in each one. Yet it hasn't made a difference. Oddly enough, the path mentioned in the error, is not mentioned anywhere in the files. Where is it getting the setting from? Is this a normal message, or am I missing the joke again?

I am also getting the error message:

"Access denied for user 'ODBC'@'localhost' (using password: NO)
Could not connect to database server ''. Did you configure the hostname correctly? Is the MySQL Server running?"

The server is running and everything is set to defaults. Should I be getting this error?

Anonymous
 

RE: Trouble with Setup.php...

Postby stonej55 » Mon Dec 10, 2007 11:01 am

Hello,

Right click on the WAMP icon thats is near the clock and go to PHP > PHP.INI, search in there for
"; Windows: "path1;path2"" and then put :
include_path = ".;c:phpincludes;C:wampwwwsitincludes"
Now close the file and then you then need to right click on the WAMP Icon and restart all services...

That should fix the includes...

Now right click on the icon again and got to MySQL link > MySQL Console.

Now type

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword';

That should set your password and you should be able to continue with the setup.

Thanks

Jeff
stonej55
SiT! Regular
SiT! Regular
 
Posts: 41
Joined: Sun Feb 01, 2009 9:49 pm

RE: Trouble with Setup.php...

Postby Anonymous » Mon Dec 10, 2007 11:44 am

The menu in the lower right-hand corner does not have all of the icons that it should. I was going to save that for when I got up and going. Because I can still get to the necessary files, it is not so important. Never the less, correct me if I am wrong, but that shortcut should point to 'C:wampinphpphp5.2.5php.ini', correct? Within that file, I have set the include_path already:

include_path = ".;c:phpincludes;C:wampinSiT!includes" (This is a paste from the current config...)

I have even deleted and reinstalled under variousdifferent logins (As myself (Domain Admin...), local Administrator and the domain Administrator account...). Still the same result. I know I am probably being thick and have forgotten a setting somewhere. I was just wondering if this issue has arisen and what the solution was.

Also, I thought it odd that the path it is finding ('C:php5Pear'...) is not in the php.ini file at all. Is that an indication of a larger issue?

Once again, I appreciate the help with this issue. I have high hopes for this program and am anxious to get using it.
Anonymous
 

RE: Trouble with Setup.php...

Postby ivanlucas » Mon Dec 10, 2007 12:26 pm

This may or may not be an issue, but I wouldn't recommend having an exclamation mark in your path. If it were me I'd rename your c:wampinSiT! directory to c:wampinsit and then change that include_path appropriately.

Worth a try probably.

Have you tried a phpinfo() in a file yet? It usually is a help to do that because it will print the current php configuration that is being used, and you'll see if it's picking up your include_path ok.

Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

RE: Trouble with Setup.php...

Postby Anonymous » Mon Dec 10, 2007 1:17 pm

The fact that I am not getting the complete menu after WampServer is installed, is that a possible problem?
Anonymous
 

RE: Trouble with Setup.php...

Postby Anonymous » Mon Dec 10, 2007 2:04 pm

Problem solved. I am chalking it up to the awkwardness of Windows. I was trying to use an existing Server rather than have to rebuild a new one. I should have known better than to use Windows. I should have built a Linux box.

Anyway, I had originally installed without the exclamation in the directory label, but it made no difference. I removed and reinstalled once again. The only difference this time is that I installed and used Firefox instead of IE7. Low and behold, it worked like a charm. I'll never trust Microsloth again.

Thank you for all of your assistance with this. It was much appreciated. I especially appreciate the heads up regarding WampServer. I have seen it before in my travels, but never had a need to use it. I will know for future client needs.

Cheers...
Anonymous
 

Next

Return to Installing, Configuring and Using SiT!

Who is online

Users browsing this forum: No registered users and 1 guest

cron