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: php/ phpmyadmin
Author
Aragami



Joined: 07 Aug 2006
Posts: 8

PostPosted: Wed 16 Aug '06 8:45    Post subject: php/ phpmyadmin Reply with quote

finally got php configured so that no errors come up when i start server, tried using phpinfo ;( (or what ever it is) but nothing showed up on the screen, however, the site was now correctly reading my php documents (login page etc.) so i figured that it was ok.

phpmyadmin- put it into my document file and tried to access it by using http://localhost/phpmyadmin/index.php came up with error: Cannot load mysql extension. Please check your PHP configuration. - Documentation.
Anyone know what causes this error and how i can fix it? i tried looking in the docs but it was no help.

versions: apache 2.2.3
php 5.2 (snaps version?)
phpmyadmin 2.8.2.2

cheers.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 16 Aug '06 8:58    Post subject: Reply with quote

What is the short_open_tag setting in your php.ini ?

short_open_tag = On

Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.

Than if PHP works look at the output from the phpinfo() script if the mysql extention is loaded

Code:

<?php
phpinfo();
?>


if not loaded enable it in the php.ini

from
#extension=php_mysql.dll ;

to
extension=php_mysql.dll ;


copy libmysql.dll from mysql\bin to Apache\bin
Back to top
Aragami



Joined: 07 Aug 2006
Posts: 8

PostPosted: Wed 16 Aug '06 10:31    Post subject: Reply with quote

short_open_tag is on... how do i enable <? ?

put the extension on and copied the file.

the doc shows up, but no where in it does it say that mysql is enable, the only that that has sql in it is: sql.safe_mode Off Off (off, obviously) and i don't think that has anything to do with it?

oh yeah, still cant get phpmyadmin to work, which is the real problem here Sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 16 Aug '06 10:39    Post subject: Reply with quote

to enable it in php.ini
Code:

short_open_tag = On


Did you run phpinfo ? There is a list of the loaded PHP modules. So my question again: Is mysql extension loaded?
Secondly did you restart your server?
Back to top
Aragami



Joined: 07 Aug 2006
Posts: 8

PostPosted: Wed 16 Aug '06 10:56    Post subject: Reply with quote

restarted the server, same thing...

if your talking about additional modules, there is nothing under that, and i can't find anything refering to mysql, so i must assume that mysql is not enabled.

under the header apache2handler, there is a bit called loaded modules, mysql is not under that either.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 16 Aug '06 12:13    Post subject: Reply with quote

You scrolled the hole page down and there is no MySQL?
Comes there an error message when you start apache that it can not load php_mysql.dll?

Is the extension_dir set correcly in php.ini?

extension_dir = "C:/php/ext/"
Back to top
Aragami



Joined: 07 Aug 2006
Posts: 8

PostPosted: Wed 16 Aug '06 12:30    Post subject: Reply with quote

absolutely no mysql on the page.

it works now, extension_dir was not set, so i set it and placed the .dll into the php/ext folder.

Thanks james blond!
Back to top
Aragami



Joined: 07 Aug 2006
Posts: 8

PostPosted: Wed 16 Aug '06 23:09    Post subject: Reply with quote

edit: problem fixed now.
Back to top


Reply to topic   Topic: php/ phpmyadmin View previous topic :: View next topic
Post new topic   Forum Index -> Other Software