Solved

Apache and PHP errors

Posted on 2009-04-05
3
1,139 Views
Last Modified: 2013-12-13
Baseline
PC running XP
Installed - IIS5, Apache, mySQL 5.0, PHP Version 5.2.9-1
My files work fine on another PC.

I can not get the e-mail function to work on my computer. I have looked at the error log on Apache and here are the errors I am receiving. I am guessing this is why the e-mails won't work. Does anyone have any other ideas of what I need to be looking for? I will attach the php.ini file and the httpd.conf file for your review if it will be helpful. I have verified the files are in the correct directory. I have added a screen print of what the directory looks like. Is it possible that there is some kind of a permissions issue with these files? I am all out of ideas.

I have noticed that it is looking for the files at "'C:\\php\\ext\\php_mssql.dll'
What is the purpose for the double back slashes? "\\"
Thanks for any helpful suggestions.

[Sun Apr 05 17:07:34 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.9-1 configured -- resuming normal operations
[Sun Apr 05 17:07:34 2009] [notice] Server built: Dec 10 2008 00:10:06
[Sun Apr 05 17:07:34 2009] [notice] Parent: Created child process 5936
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_oci.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_sqlite_external.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pspell.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_sybase_ct.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Sun Apr 05 17:07:35 2009] [notice] Child 5936: Child process is running
[Sun Apr 05 17:07:35 2009] [notice] Child 5936: Acquired the start mutex.
[Sun Apr 05 17:07:35 2009] [notice] Child 5936: Starting 64 worker threads.
[Sun Apr 05 17:07:35 2009] [notice] Child 5936: Starting thread to listen on port 80.


httpd.txt
php.txt
ext.png
0
Comment
Question by:mhorner0224
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
MiddleEarth earned 500 total points
Comment Utility
So I have a working installation of windows PHP (5.2.2.6, I believe) and I compared your php.ini to mine. There are a number of minor differences, but here are my recommendations:

-You have two conflicting settings for "short_open_tag". It's set to OFF on line 132, and then set to On at line 234.

-My "extension_dir" is the same as yours, except for the fact that I have a lower-case c: whereas yours has a upper-case C:. I'd be surprised if this was the error, but who knows?

-At the end of your file, there are a large number of lines like:

[PHP_BZ2]
extension=php_bz2.dll
[PHP_CURL]
extension=php_curl.dll

These are all uncommented. By contrast, my file:
a) does not put these into their own [SECTIONS]
b) has them all listed after the Windows Extension paragraph (what would be line 665 in your file)
c) has most of them commented out, except the ones I need for my applications.

Now, and this is the kicker, Google tells me that "you may get warnings like this if you enable all the extensions in PHP. The errors are generally caused by mis-configured extensions. Some extensions require additional setup, software, and support DLLs, which come from outside the main PHP installer." Notice which files you're getting errors on: mssql, pgsql, sqlite, sybase... Seems likely this could be the situation.

So, go through and comment out the modules that you don't need. Start with the ones you're getting errors about. I can't say that this will fix the problem entirely (since, judging by the log files, it seems like PHP is still starting up correctly) but it's a start.

More to the point, I noticed that you have a mail server and "from" address specified. Since it's your ISP's mail server, I'm going to wager that it probably requires some form of login/password. You may have to specify this somewhere. There are also apparently issues with mail() on Win32; the PHP documentation site has some comments that may help out, such as http://us3.php.net/manual/en/ref.mail.php#77499 Basically, you may have to install some type of sendmail substitute binary, as well as include additional parameters in your php.ini to handle any required authentication.

Hope that helps!
0
 

Author Comment

by:mhorner0224
Comment Utility
I have updated the duplicate entries and changed the capital C to a lower case c. I commented those out and the errors are gone. But, the e-mail still doesn't work. I have another computer setup and it is working. As long as I am connected to the Cox network I don't need a username and password to send e-mails. I am going to try copying the php.ini file from the PC that is working and see what I break.
0
 

Author Closing Comment

by:mhorner0224
Comment Utility
Thanks for your help.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now