Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Apache Php With Mysql On Windows [solved]
rockarolla
post Feb 17 2008, 05:11 PM
Post #1


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 44
Joined: 5-February 08
Member No.: 28,155



I have problems running PHP MySQL function in a windows set web environment. PhP scripts are executed but if I try to use mysql connect and other like functions I get a blank window (while using the browser).

The command line client is working...I've added the path to libmysql.dll and the extension=php_mysql.dll in the php.ini.
Go to the top of the page
 
+Quote Post
yordan
post Feb 17 2008, 06:37 PM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,886
Joined: 16-August 05
Member No.: 7,896



Wich Apache PHP Mysql environment are you using ?
Personnally I use easyphp : very easy to install, it sets up anything, works fine each time I install it. I use for testing my phpbb3 sites, whether with the local mysql database or with a remote Oracle database. It's free, get it from here : http://www.easyphp.org/index.php
QUOTE
EasyPHP is a complete package allowing to use all the power and the flexibility that offers the dynamic language PHP. Package includes an Apache server, a MySQL database, PHPMyAdmin as well as easy development tools for web sites and applications.

I tried other distros like XAMP, did not work or simply crashed my windows. mad.gif
Go to the top of the page
 
+Quote Post
faulty.lee
post Feb 18 2008, 12:28 AM
Post #3


Premium Member
Group Icon

Group: [HOSTED]
Posts: 442
Joined: 5-November 06
Member No.: 17,016



WAMP http://www.wampserver.com/en/, was easy to install and use also. I've been using for quite a few years, before I learn how to install each component individually. I need to do so due to the fact that sometime I need to use particular version of the component for my project, which these distros cannot provide.
Go to the top of the page
 
+Quote Post
rockarolla
post Feb 18 2008, 03:59 AM
Post #4


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 44
Joined: 5-February 08
Member No.: 28,155



I bumped on this combo server applications but I preferred to use the raw distributions...I would appreciate if you could check for me the config files if there are any (e.g. httpd.conf of Apache and the php.ini ) and give me the lines including mysql, safe there are no personal or sequrity issue therewith!

Thanks.
Go to the top of the page
 
+Quote Post
mikesoft
post Feb 18 2008, 06:05 AM
Post #5


Member - Active Contributor
Group Icon

Group: [HOSTED]
Posts: 91
Joined: 26-December 07
From: Venezuela
Member No.: 27,134



the only problem I see with using WAMP is that they don't allow you to change the password for the mysql user, i remember me looking through lots of documentation to be able to change the password smile.gif

they should have that option on the setup...

other than that, super easy to set up and run!.. in less than 5min
Go to the top of the page
 
+Quote Post
Quatrux
post Feb 18 2008, 11:16 AM
Post #6


the Q
Group Icon

Group: [HOSTED]
Posts: 980
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



I used to go with installing everything myself, Apache, PHP, MySQL on Windows and Linux, it was quite easy, but now on Windows I am using Wampserver and I really think that it's great, it works, the default settings are good and what I like about it that in some mouse clicks you can change between PHP, MySQL and Apache versions, by doing that I still didn't get any really big errors, so it is kind of stable. smile.gif

Used to use EasyPHP too, before I tried WAMP5 which now is called Wampserver, but EasyPHP wasn't updated frequently and somehow I didn't like it, but the main thing it worked.. So when you know what is Apache, Mysql and PHP and know how to install them yourself, I think that making your live easy, you could just go with Wampserver biggrin.gif But if you don't know how to do it separately and are just using all in one software like Wampserver and aren't serious about it when you also can use it, but if you're a little bit serious, you should try to do it separately, who knows when you'll need it, even though to do it on Windows is quite easy all you need is to push next next next, change something and edit the conf or ini files a bit.. On Linux it is almost identical, but if you want to be even more serious, you should and try to compile everything yourself biggrin.gif and make it work.. tongue.gif
Go to the top of the page
 
+Quote Post
rockarolla
post Feb 18 2008, 02:50 PM
Post #7


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 44
Joined: 5-February 08
Member No.: 28,155



REsolved.

The problem was the php.ini file - the automatic configuration done by mysql isn't working properly.

You need to add some extension caluses in the php.ini file to dynamic libraries that aren't present explicitely....I found an answer - rather a workaround here:

http://www.tanguay.info/wamp/installPhp5.php5?step=15

simply add the lines to php.ini:

extension=php_mysqli.dll

however, this libabry doesn't exists - its fictious in that it can be obtained by renaming php_mysql.dll to php_mysqli.dll (you may find them in the ext folder of your php installation directory)

I have them both in the extension clause - now cannot be bothered as to check which one is necessary(some forums say both anyway).

I don't know how such a bug can exists? Maybe its a third party stuff interested in promoting their software...



Go to the top of the page
 
+Quote Post
faulty.lee
post Feb 18 2008, 03:36 PM
Post #8


Premium Member
Group Icon

Group: [HOSTED]
Posts: 442
Joined: 5-November 06
Member No.: 17,016



QUOTE(rockarolla @ Feb 18 2008, 10:50 PM) *
I don't know how such a bug can exists? Maybe its a third party stuff interested in promoting their software...


It's not a bug. Maybe your copy or version of php doesn't have that file. Mine does. I'm using 5.2.0.0
Go to the top of the page
 
+Quote Post
TavoxPeru
post Feb 19 2008, 09:38 PM
Post #9


Super Member
Group Icon

Group: [HOSTED]
Posts: 713
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(rockarolla @ Feb 18 2008, 09:50 AM) *
REsolved.

The problem was the php.ini file - the automatic configuration done by mysql isn't working properly.

You need to add some extension caluses in the php.ini file to dynamic libraries that aren't present explicitely....I found an answer - rather a workaround here:

http://www.tanguay.info/wamp/installPhp5.php5?step=15

simply add the lines to php.ini:

extension=php_mysqli.dll

however, this libabry doesn't exists - its fictious in that it can be obtained by renaming php_mysql.dll to php_mysqli.dll (you may find them in the ext folder of your php installation directory)

I have them both in the extension clause - now cannot be bothered as to check which one is necessary(some forums say both anyway).

I don't know how such a bug can exists? Maybe its a third party stuff interested in promoting their software...

You can use both extensions at the same time, i do it without problems, i never use both of them on the same script, but i use them on different scripts and never had problems.

Now, if i remember correctly you must use the php_mysqli extension if you want to use the complete functionality offered by MySql 4.1.0 and greater versions, if not you can still use the php_mysql extension because is compatible with it.

Best regards,
Go to the top of the page
 
+Quote Post
tripperplay
post Apr 1 2008, 07:48 AM
Post #10


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 2
Joined: 1-April 08
Member No.: 29,532



i just did this yesterday. i manually installed php and uncommented the extension=php_mysql.dll, and then evrything worked fine
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. MySQL Realtime Replication(3)
  2. Error In Installing MySQL Server(6)
  3. Recover Tables From A MySQL .frm File(6)
  4. Mirror My MySQL Database To Another Mysql Server(4)
  5. How To Connect MySQL With Flash?(8)
  6. MySQL, Multiple Tables(22)
  7. Access -> Mysql(8)
  8. Is It A Good Practice To Store Image Or Other Binary Files Directly In A Mysql Database(4)
  9. Navcat For MySQL(7)
  10. Permission Problem With Mysql Database Creation(8)
  11. Mysql And Php(15)
  12. Problems With Php Saving Data Into Mysql(6)
  13. Login System Using A Mysql Db(4)
  14. What Is Mysql With Mysqli(6)
  15. Can I Use Openoffice Base To Connect To Mysql?(1)
  1. Mysql Question...(6)
  2. Oracle Vs. Mysql Vs. Postgresql(9)
  3. Installing Mysql?(17)
  4. Mysql Query Question(3)
  5. Lost Connection To Mysql ,..., System Error: 111 In(3)
  6. Subqueries In Mysql(1)
  7. Not Understanding Mysql(4)
  8. Mysql Script Help(3)
  9. Mysql - So Hard(14)
  10. Mysql Problem(1)
  11. Sun Bought Mysql(6)
  12. Mysql Backup With Another Address?(4)
  13. I Have An Error With My Mysql Connection(7)


 



- Lo-Fi Version Time is now: 6th July 2008 - 06:25 AM