Solved

Apache and PHP errors

Posted on 2009-04-05
3
1,141 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
ID: 24073729
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
ID: 24073990
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
ID: 31566853
Thanks for your help.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

910 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

16 Experts available now in Live!

Get 1:1 Help Now