newbie: error when invoke .php

newbie: error when invoke .php

am 09.12.2007 06:29:29 von Andre Junianto

Dear all,

I'm newbie.
Install php-5.2.5-win32-installer.msi successfully.
Windows XP sp2
Web-server is Apache 2.2.6 no-ssl, win32

httpd.conf has 2 lines of additional texts:

PHPIniDir "C:/PHP5/"
LoadModule php5_module "C:/PHP5/php5apache2_2.dll"

--
i wrote a simple PHP web-page: "test.php"
echo "Test PHP";
?>

Put it on the folder c:\apache\htdocs
But Firefox - http://localhost/test.php - get only a blank page.

"error.log" showed the following lines:

[Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Warning:
require_once(SAM/php_sam.php) [ href='function.require-once'>function.require-once]: failed to open
stream: No such file or directory in sam_factory on line 1
[Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Fatal error:
require_once() []: Failed
opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in
sam_factory on line 1

while "access.log" showed the following line:

127.0.0.1 - - [09/Dec/2007:11:04:17 +0700] "GET /test.php HTTP/1.1" 500 -

---
what's wrong ?
somebody help me please..

T.I.A.
andre

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: newbie: error when invoke .php

am 10.12.2007 03:41:49 von John Mertic

------=_Part_15401_17703442.1197254509312
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Try not enabling every single extension in the installer, instead enable
only the extensions you need.

You can go into Add/Remove Programs and make these changes as well.

John

On Dec 9, 2007 12:29 AM, Andre Junianto wrote:

> Dear all,
>
> I'm newbie.
> Install php-5.2.5-win32-installer.msi successfully.
> Windows XP sp2
> Web-server is Apache 2.2.6 no-ssl, win32
>
> httpd.conf has 2 lines of additional texts:
>
> PHPIniDir "C:/PHP5/"
> LoadModule php5_module "C:/PHP5/php5apache2_2.dll"
>
> --
> i wrote a simple PHP web-page: "test.php"
> > echo "Test PHP";
> ?>
>
> Put it on the folder c:\apache\htdocs
> But Firefox - http://localhost/test.php - get only a blank page.
>
> "error.log" showed the following lines:
>
> [Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Warning:
> require_once(SAM/php_sam.php) [ > href='function.require-once'>function.require-once]: failed to open
> stream: No such file or directory in sam_factory on line 1
> [Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Fatal error:
> require_once() []: Failed
> opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in
> sam_factory on line 1
>
> while "access.log" showed the following line:
>
> 127.0.0.1 - - [09/Dec/2007:11:04:17 +0700] "GET /test.php HTTP/1.1" 500 -
>
> ---
> what's wrong ?
> somebody help me please..
>
> T.I.A.
> andre
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
John Mertic
jmertic@gmail.com
http://jmertic.wordpress.com

"Explaining a joke is like dissecting a frog: you understand it better, but
the frog dies
in the process." --Mark Twain

------=_Part_15401_17703442.1197254509312--

Re: newbie: error when invoke .php

am 10.12.2007 06:12:59 von Andre Junianto

Thank you very much, it works.

Andre.

------
On Monday, December 10, 2007 9:41 AM, John Mertic jmertic@gmail.com wrote:

Try not enabling every single extension in the installer, instead enable
only the extensions you need.
You can go into Add/Remove Programs and make these changes as well.

John


On Dec 9, 2007 12:29 AM, Andre Junianto wrote:

Dear all,

I'm newbie.
Install php-5.2.5-win32-installer.msi successfully.
Windows XP sp2
Web-server is Apache 2.2.6 no-ssl, win32

httpd.conf has 2 lines of additional texts:

PHPIniDir "C:/PHP5/"
LoadModule php5_module "C:/PHP5/php5apache2_2.dll"

--
i wrote a simple PHP web-page: "test.php"
echo "Test PHP";
?>

Put it on the folder c:\apache\htdocs
But Firefox - http://localhost/test.php - get only a blank page.

"error.log" showed the following lines:

[Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Warning:
require_once(SAM/php_sam.php) [ href='function.require-once'>function.require-once]: failed to open
stream: No such file or directory in sam_factory on line 1
[Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Fatal error:
require_once() []: Failed
opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in
sam_factory on line 1

while "access.log" showed the following line:

127.0.0.1 - - [09/Dec/2007:11:04:17 +0700] "GET /test.php HTTP/1.1" 500 -

---
what's wrong ?
somebody help me please..

T.I.A.
andre

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php