Solved

Apache and PHP errors

Posted on 2009-04-05
3
1,146 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 count occurrences of each item in an array.

752 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