Click to See Complete Forum and Search --> : [RESOLVED] PHP Install Problem - SAM Error


TheBirdMan
05-08-2007, 12:28 AM
Hello,

I just installed Apache 2.2.4 Webserver, MySQL 5, and am trying to install PHP 5. The Webserver works, and I get the standard "It Works" type of message on the browser. I created a simple php file from an example that basically says the same thing, though I get a blank screen.

I looked at my PHP error log and found the following:
May 06 14:22:08 2007] [error] [client 127.0.0.1] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in sam_factory on line 1

I've been all over the place to try and resolve this, and can't seem to get anything to work, such as instructions to install the SAM, etc... I'm more familiar with the file structure of Apache and PHP than I probably every wanted to be, though am still at a loss. At the least, I can't find where this is referenced in the first place.
I develop and support apps in various platforms, though am out of my comfort zone with configuring servers. I guess I have to be nicer to the Network guys at work now - darn! ;o)

I'm running Windows XP on a pretty current machine with plenty of processing speed and memory. I'm probably overlooking a simple configuration setting, though am at my wit's end. Any assistance would be GREATLY appreciated.

Thanks in advance

bradgrafelman
05-10-2007, 01:36 AM
I'm not familiar with sam_factory, but is this a PEAR class? If so, is c:\php5\pear\ the correct path to your PEAR directory?

TheBirdMan
05-10-2007, 11:47 AM
Hello.

I think it is a PEAR class, and will double-check the config path when I get back to my computer.

Thanks

reedcat
05-13-2007, 01:31 AM
Have you figured out what the problem was? I am seeing the same error... :-(

reedcat
05-13-2007, 02:14 AM
I think I figured it out. I reinstalled PHP with enabling only the extension I needed (mysql) and rebooted the PC and I don't see the problem any longer...

TheBirdMan
05-13-2007, 03:09 PM
Thanks. Last night I also stumbled onto a solution, though I believe that the problem occurred in the first place because I must have had too many options checked on the install.

I was looking at the directory structure, and saw a file named php_sam.dll in my "C:\Program Files\PHP\ext" directory. I removed it, restarted the server, and it now works.

There must be a monitoring program that watches this directory and tries to run whatever it contains.

Thanks for all of your comments.