| View previous topic :: View next topic |
| Author |
Message |
Jim

Joined: 03 Jan 2006 Posts: 6 Location: Houston TX
|
Posted: Thu 19 Jan '06 2:20 Post subject: PHP 5 not running functions |
|
|
I’m almost there but the PHP tags are not executed. My file has (index.php located in docs/club)
<HTML>
<BODY>
hello world
<?phpinfo();?>
goodbye world
</BODY>
</HTML>
returns hello & goodbye world and when I view the source shows the same text as above. Below is what I’ve done to set things up.
General Install
1. Unzipped and got the proper folders as explained on the www.php.net/manual
2. I added C:\PHP to the path (tried copying php5ts.dll to C:\Windows too – no help)
3. Copied and renamed php.ini-recommended to php.ini
4. Modified registry = HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = C:\PHP
5. Set variable PHPRC to C:\PHP
6. DOC_ROOT – when I set this to anything I get document not found, left blank I get what is described above.
7. Set extension_dir = C:\PHP\EXT
Sambar Server Specific
Open mappings.ini and add the following line under [ISAPI]:
*.php = C:\PHP\PHP5ISAPI.DLL
8. ISAPI LOG
[2006-01-18 19:33:52] Loading PHP5ISAPI.DLL: isapi
[2006-01-18 19:50:23] PHP5ISAPI.DLL: Run for 192.168.0.101
[2006-01-18 19:50:23] PHP5ISAPI.DLL: GetServerVariable 'SCRIPT_NAME' returned: /index.php
[2006-01-18 19:50:23] PHP5ISAPI.DLL: ServerFunc() HSE_REQ_MAP_URL_TO_PATH_EX '/index.php'
[2006-01-18 19:50:23] PHP5ISAPI.DLL: GetServerVariable 'HTTP_COOKIE' returned:
[2006-01-18 19:50:23] PHP5ISAPI.DLL: ServerFunc() HSE_REQ_SEND_RESPONSE_HEADER_EX '200 OK'
[2006-01-18 19:50:23] PHP5ISAPI.DLL: WriteClient(89 bytes) <HTML> <BODY> hello world <?phpinfo();?> goodbye world </BODY> </HTML>
[2006-01-18 19:50:23] PHP5ISAPI.DLL: Returned HSE_STATUS_SUCCESS
9. Server log = shows no errors
10 . If I go to a command prompt set to the PHP folder I can type in PHP –H and get the help listing or PHP –I and get the “INFO” listing |
|
| Back to top |
|
Steffen
Joined: 07 Jun 2004 Posts: 403 Location: Netherlands
|
Posted: Thu 19 Jan '06 19:18 Post subject: |
|
|
All looks good what you have done, only step 4, 5 and 6 is not usual to do. Maybe you can try without doing these steps.
The ISAPI.log shows that php is runnng.
Not made any other change in php.ini (by accident) ?
Steffen.
ps.
To get better help it is better to mention the versions you use. See the forum rules at http://forum.sambarserver.info/viewtopic.php?t=181 |
|
| Back to top |
|
Jim

Joined: 03 Jan 2006 Posts: 6 Location: Houston TX
|
Posted: Fri 20 Jan '06 23:39 Post subject: PHP 5 not running functions |
|
|
I’m running Sambar Pro 6.3 beta on XP Pro and trying to install PHP version 5.0.2
I “undid” steps 4, 5 and 6 with no change in performance.
The content of the ISAPI log is shown in step 8.
I unzipped and reinstalled all of PHP so as to be sure I hadn’t made an accidental change in the INI file with no change in performance.
Came home tonight and the #$@!@## thing is working………… I don’t know why but as long as it keeps working I’ll never complain.
Thanks for all the help. |
|
| Back to top |
|
Perlsol
Joined: 08 Aug 2007 Posts: 4
|
Posted: Mon 20 Aug '07 13:23 Post subject: |
|
|
the other thing with php5 is the open tags must have php in them
<? ... ?> wrong
<?php ... /> right
it can be changed to allow it but a default install its turned off |
|
| Back to top |
|
tage
Joined: 25 Dec 2008 Posts: 9 Location: denmark
|
Posted: Sat 24 Jan '09 16:21 Post subject: phpinfo |
|
|
| thats right |
|
| Back to top |
|
Liquid
Joined: 27 Feb 2009 Posts: 5
|
Posted: Fri 05 Feb '10 12:05 Post subject: |
|
|
Here is the heads up with php5.2 most stuff like phpbb ect will not run on it you need to down grade to the older php, stuff runs then |
|
| Back to top |
|