Help to configure PHP 5...............

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chiragkini
Forum Newbie
Posts: 1
Joined: Sat Mar 21, 2009 6:14 am

Help to configure PHP 5...............

Post by chiragkini »

Hey Guys, This is my first post in this Forum..
Frankly speaking I am Java programmer, who had done lots of coding in JSP, Servlets, swings, java beans.... etc..
And now I am newbie to PHP programming i haven't done PHP earlier.
To start learning I installed PHP 5.2.8 , Apache 2.2X, MySQL 5.1 on my windows XP MAchine..
I did lots of googling to configure php on apache 2.2 ( editing httpd.conf ,php.ini etc)
I suceeded in configuring basic PHP pages. But when I tried to use mySQL it gaved me error: mySQL_Connect() undefined function call... and so on. I understood that server is not able to find MySQl function library. SO i tried lots of solution given on net. like uncommenting some statements, adding new statements in configuration file.. my every try was bridge under the water... So to solve this i installed foxserver which bundles mySQL, php, appache with it .. you dont need to configure anything.. i succeded in doing database programming...
But as a Techie i was not satisfied as it uses order version PHP 4.2 , mySQL 3.2 bundled with foxserver....
So guys any of you who have worked on PHP 5, mySQl 5.1 and Apache 2.2 and know how to configure it successfully, please do reply.....

Waiting for reply...
Thanks in Advance.............
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: Help to configure PHP 5...............

Post by panic! »

have you thought about using a prepackaged solution like XAMPP or WAMP to get you going?

What you're doing is good, getting to understand how the infrastructure works. But not many PHP major sites are deployed on Windows server so I use a Parallels Virtual Machine with Ubuntu Server, comes with LAMP (Linux Apache MySQL PHP) server pre configured if you choose it in the installation options. I know it's sounds difficult but it's actually quite straight forward.
Post Reply