logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: php5.2 cannot load some of the extensions
Author
Xtatic



Joined: 07 Nov 2006
Posts: 3

PostPosted: Tue 07 Nov '06 17:18    Post subject: php5.2 cannot load some of the extensions Reply with quote

Probably not the right place to ask this question, yet...

I managed to install php5.2 okay, but it cannot load some of the extensions. Basically it's only one being critical to me: Mysql.

The apache error log says:
Code:
[Tue Nov 07 16:59:48 2006] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Tue Nov 07 16:59:48 2006] [notice] Server built: Sep 28 2006 21:57:41
[Tue Nov 07 16:59:48 2006] [notice] Parent: Created child process 3996
[b]PHP Warning:  PHP Startup: Unable to load dynamic library 'e:\\php5\\ext\\php_mysql.dll' - \xcd\xe5\xe2\xe5\xf0\xed\xe0\xff \xef\xee\xef\xfb\xf2\xea\xe0 \xe4\xee\xf1\xf2\xf3\xef\xe0 \xea \xe0\xe4\xf0\xe5\xf1\xf3 \xef\xe0\xec\xff\xf2\xe8.\r\n in Unknown on line 0[/b]
[Tue Nov 07 16:59:48 2006] [notice] Child 3996: Child process is running
[Tue Nov 07 16:59:48 2006] [notice] Child 3996: Acquired the start mutex.
[Tue Nov 07 16:59:48 2006] [notice] Child 3996: Starting 250 worker threads.
[Tue Nov 07 16:59:48 2006] [notice] Child 3996: Starting thread to listen on port 80.
[Tue Nov 07 16:59:59 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Nov 07 16:59:59 2006] [notice] Child 3996: Exit event signaled. Child process is ending.
[Tue Nov 07 17:00:00 2006] [notice] Child 3996: Released the start mutex
[Tue Nov 07 17:00:01 2006] [notice] Child 3996: Waiting for 250 worker threads to exit.
[Tue Nov 07 17:00:04 2006] [notice] Child 3996: All worker threads have exited.
[Tue Nov 07 17:00:04 2006] [notice] Child 3996: Child process is exiting
[Tue Nov 07 17:00:04 2006] [notice] Parent: Child process exited successfully.


Now I do not believe this might be a compiler problem (I seem to be the only one who has it) but it does give the same error I had from the whole php set, before getting the correct php5apache2_2 module in place.

Most extensions load and work correctly, it's only a few that do not.

in my php.ini there does not seen to be anything wrong

Code:
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "e:\php5\ext\"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On


Not much you can do here (I even tried using unix slashes, just in case)... the PATH variable is set, and so is PHPRC, both to E:\php5.

The httpd.conf sets directory permissions like this:
Code:
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Satisfy any
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "e:/Program Files/Apache2.2/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Satisfy any
</Directory>

<Directory "E:/php5>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Satisfy any
</Directory>

<Directory "E:/www/site1">
    AllowOverride None
    Options None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Satisfy any
</Directory>

<Directory "E:/www/site2">
    AllowOverride None
    Options None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Satisfy any
</Directory>


I'm sure it's something small and stupid, only my brains appear to be even smaller and stupider Crying or Very sad Any hint?

Thanx
Back to top
Xtatic



Joined: 07 Nov 2006
Posts: 3

PostPosted: Tue 07 Nov '06 17:24    Post subject: Reply with quote

It might be relevant to say that I had exactly the same problem when trying to install php5.1.2, and I naively hoped to solve it by upgrading version Laughing
Back to top
Xtatic



Joined: 07 Nov 2006
Posts: 3

PostPosted: Tue 07 Nov '06 17:37    Post subject: Reply with quote

LOL as it always happens, I looked for days before posting, and found the solution just a couple of minutes after surrendering.

Copy that libmysql.dll to apache\bin folder

Yeap! that worked.
Back to top
WRFan



Joined: 03 Nov 2006
Posts: 3

PostPosted: Thu 09 Nov '06 11:29    Post subject: Reply with quote

Quote:

Copy that libmysql.dll to apache\bin folder


you don't have to copy it anywhere, it can stay in the root php folder, you just have to add the php folder to the environment variables of your windows installation

Name: PHPRC
value: pathTo\PHP (the path to the php folder)

don't forget to reboot afterwards (really REBOOT the pc, not just a server restart)
Back to top


Reply to topic   Topic: php5.2 cannot load some of the extensions View previous topic :: View next topic
Post new topic   Forum Index -> Other Software