| View previous topic :: View next topic |
| Author |
Message |
cgplumb
Joined: 09 Nov 2005 Posts: 5 Location: montana
|
Posted: Wed 09 Nov '05 20:51 Post subject: Sambar 6.0-1 and PHP5 |
|
|
Hey.. I've read a bunch of other topics here and at PHP.net and maybe I'm just missing stuff..
I'm running a WinXP Pro computer with Sambar Serber v6.0-1, hosting www.gardiner.org/ I downloaded php5 and extracted it to C:/php/. Then, I moved php.ini-reccomended to WINDOWS and renamed it as php.ini.
I went to sambar/config and opened up "mappings.ini"and added this:
| Code: | [isapi]
#for PHP 5
*.php = c:\php\php5isapi.dll |
I made a phpinfo.php test page, with this inside it: <?php phpinfo(); ?> and stopped/restarted the server. When I load the page, all I get is a blank screen and when I look at the source code, I can see the PHP.
In my isapi.log file, this is the only entry: [2005-11-09 13:36:13] Loading PHP5ISAPI.DLL: isapi
Any suggestions on how to make the PHP scripts work properly/get the server to recognize and execute them?
Danke |
|
| Back to top |
|
Steffen
Joined: 07 Jun 2004 Posts: 403 Location: Netherlands
|
Posted: Wed 09 Nov '05 21:13 Post subject: |
|
|
Looks all good what you have done.
The isapi.log tells you that php5 is loaded correctly in Sambar.
Check your config.ini and mappings.ini if you have somewhere a "php" in it. If so remove that.
Look special at the following settings in config.ini, they should not contain *.php :
ISAPI Extensions =
CGI Extensions =
WinCGI Extensions =
Btw. 6.0-1 is quit "old".
Steffen |
|
| Back to top |
|
cgplumb
Joined: 09 Nov 2005 Posts: 5 Location: montana
|
Posted: Thu 10 Nov '05 21:57 Post subject: |
|
|
I found "php"once in the config.ini file..
| Code: | | Default Page = index index.htm index.html index.stm index.asp index.php |
The CGI Extensions has: #CGI Extensions = *.pl *.cgi" and the other two (Isapi Extensions and WinCGI Extensions) are both empty.
Are there any .dll files that I need to move to WINDOWS/system or system32? That's pretty much the only other thing I can think of, but I really don't know if I'm even on the right track.l
Suggestions?
Also, can I upgrade from v6.0-1 to 6.2 by just downloading the new version of it and running it? Or is there something else I'd need to do?
Danke |
|
| Back to top |
|
cgplumb
Joined: 09 Nov 2005 Posts: 5 Location: montana
|
Posted: Thu 17 Nov '05 15:32 Post subject: |
|
|
Any ideas anyone? :P
EDIT: Oh, and I've upgraded the server to v. 6.2 and made all the same changes...still nothing but a white page that you can see the code with. |
|
| Back to top |
|
Steffen
Joined: 07 Jun 2004 Posts: 403 Location: Netherlands
|
Posted: Thu 17 Nov '05 16:08 Post subject: |
|
|
I really want to help, buy I see not a clue.
Only thing left that you have some in the mappings.ini that causes it.
Steffen |
|
| Back to top |
|
cgplumb
Joined: 09 Nov 2005 Posts: 5 Location: montana
|
Posted: Mon 21 Nov '05 22:14 Post subject: |
|
|
Hmm...this is my entire mapping.ini file, from start to finish. Tell me if there's something there that shouldn't be, or if something *should* be there and isn't.
| Code: | #
# Mapping File.
#
# CGI, WinCGI, Modules and ISAPI Extension Assocaitions
#
[aliases]
# url-path = directory-path
[cgi-aliases]
# url-path = directory-path
[wincgi-aliases]
# url-path = directory-path
[servlet-aliases]
*.jhtml = org.apache.servlet.ssi.SSI
*.jsp = org.apache.jasper.servlet.JspServlet
[modules]
# request-URI = request-handler
[isapi]
# request-URI = isapi-dll
*.php = c:\php\php5isapi.dll
[cgi]
*.pl = /perl/perl.exe
|
|
|
| Back to top |
|
Steffen
Joined: 07 Jun 2004 Posts: 403 Location: Netherlands
|
Posted: Mon 21 Nov '05 22:23 Post subject: |
|
|
See nothing unusual.
Maybe you can mail me you config.ini ( if you are a Pro user, please remove the License and Lincensee from it)
Steffen |
|
| Back to top |
|
pol
Joined: 13 Jun 2004 Posts: 9 Location: Netherlands
|
Posted: Tue 22 Nov '05 11:45 Post subject: |
|
|
| cgplumb wrote: | Hmm...this is my entire mapping.ini file, from start to finish. Tell me if there's something there that shouldn't be, or if something *should* be there and isn't.
| Code: | #
# Mapping File.
#
# CGI, WinCGI, Modules and ISAPI Extension Assocaitions
#
[aliases]
# url-path = directory-path
[cgi-aliases]
# url-path = directory-path
[wincgi-aliases]
# url-path = directory-path
[servlet-aliases]
*.jhtml = org.apache.servlet.ssi.SSI
*.jsp = org.apache.jasper.servlet.JspServlet
[modules]
# request-URI = request-handler
[isapi]
# request-URI = isapi-dll
*.php = c:\php\php5isapi.dll
[cgi]
*.pl = /perl/perl.exe
|
|
My mapping.ini configuratie,
[isapi]
*.php = C:\php\php4isapi.dll
*.pl = C:\perl\bin\perlis.dll
Greeting,
Henk Polie |
|
| Back to top |
|
cgplumb
Joined: 09 Nov 2005 Posts: 5 Location: montana
|
Posted: Wed 23 Nov '05 18:41 Post subject: |
|
|
Steffen, I've sent you a copy of my config.ini file.
But after trying some things, I think it's probably something wrong with my installation of PHP. Yesterday, I downloaded XAMPP server (a nice, friendly combo of Apache, PHP, MySQL, FileZilla and some other web things). It loads all the pages in it's htdocs folder (same as Sambar's docs) but won't parse the PHP. Instead, it's doing the same thing as Sambar, showing a blank page with viewable source code.
Is there anywhere I messed up in the installation of PHP, perhaps? |
|
| Back to top |
|