I am installing Drupal 5.1 with Apache 2.2.4, MySQL 5.0 and PHP 5.2.1 on Windows 2003 Server with Service Pack 1.

The installation process seems to be OK until when I tried to run the install script. I got a blank screen, and when I looked at th error log in C:\Program Files\Apache Software Foundation\Apache2.2\logs, it has the following two lines:

[Thu Feb 15 19:08:31 2007] [error] [client 10.1.68.210] PHP Warning: require_once(SAM/php_sam.php) [function.require-once]: failed to open stream: No such file or directory in sam_factory on line 1

[Thu Feb 15 19:08:31 2007] [error] [client 10.1.68.210] PHP Fatal error: require_once() [function.require]: Failed opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in sam_factory on line 1

Does anyone have this problem before? Please share your solution. I have searched the forum but just cannot find anything on this PHP Fatal error. The directory c:\php5\pear contains just one file go-pear.phar. I even did a search on php_sam.php on my hard drive and it didn't return anything.

Thanks!

Catherine

Comments

milesa’s picture

I have exactly the same problem using Apache 2.2.4, MySQL 5.0 and PHP 5.2.1 but on Windows XP

Help please

Miles A

kjcdude’s picture

I am also having this problem
Apache 2.2.4 PHP 5.2.1

Any help would be great

manojlo.johnson’s picture

I run into same problem and resolved by commenting out php_sam.dll in php.ini file. You can do that by finding line with

extension=php_sam.dll

and putting semicolon at the beggining of the line.

rosiebnu’s picture

i also met the same problem during the installation of drupal when it needed multi-byte string. johnson's way can't work for me. but i found another way to solve the two problems. that is,
problem 1. support multi-byte strings, like chinese character, japanese character;
problem 2. avoid the blank page of the web server, that is caused by the php_sam.php. the information from the log file is:
[Thu Feb 15 19:08:31 2007] [error] [client 10.1.68.210] PHP Warning: require_once(SAM/php_sam.php) [function.require-once]: failed to open stream: No such file or directory in sam_factory on line 1
[Thu Feb 15 19:08:31 2007] [error] [client 10.1.68.210] PHP Fatal error: require_once() [function.require]: Failed opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in sam_factory on line 1

these problems lies in the installation of php.

when installing php 5.2.6, there is a screen: choose items to install. there are three parts: program, extensions and extras.

if we only install program, deselect the other two, then the drupal installation needs multi-byte strings support.

if we have all three installed, then problem 2 appears.

the exact way to solve the problem is select some parts in the "extensions" and "extras", like multi-byte strings, pdf, mssql, mysql. and leave other parts deselected.

it works for me.
------------------------
tags: mbstring, multi-byte string, php_sam.php,php_sam,dll, php, durpal installation