WAMP server Problem and Correct way to install PHP and MySQL???

WAMP server Problem and Correct way to install PHP and MySQL???

am 23.01.2009 19:20:16 von Sashikanth Gurram

Hello everyone,

I have installed WAMP server on my PC. Then I have installed the MySQL
and PHP software by downloading them from the site. The PHP programs I
have written used to work fine but when I tried to connect to the MySQL
database or create a new database using the PHP programming nothing
happens in the browser. I do not know what happened. After several
attempts I finally uninstalled the MySQL and PHP programs and then when
I tried to connect to the MySQL usin PHP it worked fine I do not know
the reason for this. Can anyone tell me what the reason is?

Further more I would like to install PHP and MySQL along with a server
like APACHE. But I do not know where to download the APACHE server from.
Also When I install PHP and MySQL how do I link PHP and MySQL so that
they work in tandem.

Would be great if anyone can clear these doubts. I know that these are
very basic questions but I am a starter.

Thanks,
Sashi

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: WAMP server Problem and Correct way to install PHP

am 24.01.2009 13:31:40 von Stephen Wilding

Hello there, yeah I'm new to this list and I'm no professional, but I'm
sure something can be done to help you. And welcome to the world of PHP
and MySQL... bring paracetamol :)

Okay when you say you've installed WAMP, you are installing Windows,
Apache, MySQL and PHP on your web server (be it localhost or other). So
if you have installed WAMP, there's no need for Apache... it's already
there.

There's a couple of reasons why you might not be able to see anything in
your browser. The most simple answer here is that your php program may
only be connecting to the MySQL database and running queries (to create
a table or whatever) in there. If your code doesn't tell the screen to
output anything then it will run the queries and display a blank page.
The best thing to do here is to write some code before and after the
MySQL connection/query. So just put a simple echo above and below the
code, something like:

//put this before the connection
echo 'Works fine before the connection';

//put this after the connection
echo 'Connection worked fine with no errors';

Now if neither of these lines appears in your browser, chances are
there's an error somewhere in your code. You should look at enabling
errors in your php.ini file (google it!). If one of the lines appears,
then there's a problem with MySQL or the way you have connected/queried
to it. If both the lines appear then check your database, chances are
the query has been run and you just don't know it yet.

If this is a little off the mark for you then I apologise in advance.
Maybe send us your code example and we/I can have a look at it? Maybe
even send your php.ini file in and we can see if MySQL is supported by
default, make sure errors are enabled etc.

hope this helps! :)



On Fri, 2009-01-23 at 13:20 -0500, Sashikanth Gurram wrote:
> Hello everyone,
>
> I have installed WAMP server on my PC. Then I have installed the MySQL
> and PHP software by downloading them from the site. The PHP programs I
> have written used to work fine but when I tried to connect to the MySQL
> database or create a new database using the PHP programming nothing
> happens in the browser. I do not know what happened. After several
> attempts I finally uninstalled the MySQL and PHP programs and then when
> I tried to connect to the MySQL usin PHP it worked fine I do not know
> the reason for this. Can anyone tell me what the reason is?
>
> Further more I would like to install PHP and MySQL along with a server
> like APACHE. But I do not know where to download the APACHE server from.
> Also When I install PHP and MySQL how do I link PHP and MySQL so that
> they work in tandem.
>
> Would be great if anyone can clear these doubts. I know that these are
> very basic questions but I am a starter.
>
> Thanks,
> Sashi
>


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: WAMP server Problem and Correct way to install PHP and MySQL???

am 05.05.2009 01:22:07 von php news feed

when you click on the wamp icon in your taskbar you will get an popup menu:
by clicking on "phpMyAdmin" your browser will open with phpMyAdmin. From
there you can check the database and create databases and tables as you go.

If phpmyadmin could not open. : page times out then click on the wamp icon
again, move to Apache, then Service, and then click on "Test port 80", then
you should get something like
------------------------------------------------------------ ------------------
Your port 80 is actually used by :

Server: Apache/2.2.11 (Win32) PHP/5.2.8


Press Enter to exit...
------------------------------------------------------------ ------------------
if you get an error on port 80 that it is in use, check that IIS is not
running on your pc and if you use skype check that you selected in the
options so that skype doesnt make use of port 80

If you downloaded a new WAMP version, i would suggest that you make one
minor change in the php.ini file.
Put a semi-colon before "error_reporting = E_ALL" so that it looks like
this ";error_reporting = E_ALL" and remove the colon before
"error_reporting = E_ALL & ~E_NOTICE". This is just one of my personal
adjustments to the wamp default php.ini file.

Then for installing Apache. Like Sashikanth Gurram said WAMP is "Windows
Apache MySql PHP". So apache gets installed with wamp. The linux version of
wamp is LAMP just for interrest sake.

O yes. almost forgot. The WAMP icon should have a completely white
background, not yellow. if its yellow go and check the PHP Logs, Apache Logs
and MySql Logs to determine which service is not running.

I do hope this help.

"Sashikanth Gurram" wrote in message
news:497A0A60.9000108@vt.edu...
> Hello everyone,
>
> I have installed WAMP server on my PC. Then I have installed the MySQL and
> PHP software by downloading them from the site. The PHP programs I have
> written used to work fine but when I tried to connect to the MySQL
> database or create a new database using the PHP programming nothing
> happens in the browser. I do not know what happened. After several
> attempts I finally uninstalled the MySQL and PHP programs and then when I
> tried to connect to the MySQL usin PHP it worked fine I do not know the
> reason for this. Can anyone tell me what the reason is?
>
> Further more I would like to install PHP and MySQL along with a server
> like APACHE. But I do not know where to download the APACHE server from.
> Also When I install PHP and MySQL how do I link PHP and MySQL so that they
> work in tandem.
>
> Would be great if anyone can clear these doubts. I know that these are
> very basic questions but I am a starter.
>
> Thanks,
> Sashi
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4052 (20090504) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>


__________ Information from ESET Smart Security, version of virus signature database 4052 (20090504) __________

The message was checked by ESET Smart Security.

http://www.eset.com




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php