Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Apache and PHP errors

Posted on 2009-04-05
3
Medium Priority
?
1,150 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 2000 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

730 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