Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

PHP Warning:  PHP Startup: First Module: Unable to initialize module

Posted on 2007-08-02
2
Medium Priority
?
3,675 Views
Last Modified: 2013-12-13
I am getting a PHP warning that I am not sure how to resolve:

PHP Warning:  PHP Startup: First Module: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP    compiled with module API=20060613, debug=0, thread-safety=1
These options need to match

From what I have read this is because the module is a different version that of my PHP installation right? How do I resolve the issue without having to reinstall everything?
0
Comment
Question by:mit1290
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
jentulman earned 2000 total points
ID: 19619314
You are corect in stating that the module that is causing the error is incompatible with the version of PHP you are using.

These are the bits that show it

Module compiled with module API=20050922
PHP    compiled with module API=20060613

As you can see PHP is using a version of the module API several months older than the one the module was compiled against. I.e. the module doesn;t know how to talk correctly with your version of PHP, it was built to talk to an earlier version.

The 2 ways to fix this are
1. find a more recent version of the offending module
2. Downgrade PHP

Do you know which module is causing the problem? In the errorline

PHP Warning:  PHP Startup: First Module: Unable to initialize module

"First Module" is what the module is telling PHP it is called (looks like this module was built on the example code provided by the PHP guys, which calls itself "first module" and should have been renamed by the author).

I take it you may have recently installed a new module and therefore know which one it is.

 If not then I would suggest looking in your PHP dir for a file called "php.ini-dist", this is an example php.ini file that comes with php and contains a default installation configuration.
Try commenting out any modules that are loaded in your php.ini that are not loaded in the php.ini-dist. If php will start up after that, you can start uncommenting the extra modules one by one until you find the culprit.
0
 
LVL 4

Expert Comment

by:jentulman
ID: 19619339
whoops, the line

"As you can see PHP is using a version of the module API several months older than the one the module was compiled against"

should really read (for clarity)

"As you can see the module is using a version of the module API several months older than the one the PHP was compiled against"
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

579 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