Re: [PHP] 500 Internal Error

2009-06-19 Thread Thodoris



Greetings Gurus!


I am attempting to use PHP+MYSQL+APACHE and I have downloaded all the 
latest verions and installed them on a fresh windows XP install.  Got 
the Apache server up and running, got MySQL up and running and 
installed PHP.  Tested PHP with a script containing phpinfo().  
Everything works great.


Wrote a small script to connect to the MySql database.  Tried to run 
the script (http://localhost/dbscript.php) and I get a 500 Internal 
Server error.  I have been up and down the web for two days looking 
for a solution and I am completely frustrated.  I HAVE to be missing 
something.  PLEASE PLEASE PLEASE help.  Thanks.


MySql is enabled in php.ini.  Paths are set to the php folder.  I have 
NOT moved or copied any files whatsoever.  Apache version is 2.2.


Thanks.



Since you are a windows user and you need to begin coding in PHP etc why 
don't you try WAMP for starters?


http://www.wampserver.com/en/

It gives you all you need in one package.

--
Thodoris


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



Re: [PHP] 500 Internal Error

2009-06-19 Thread Bastien Koert
Ensure that you have 'show friendly error messages in the Internet
explorer is turned off ( unchecked ).


IE does like to hide errors with this feature.

Bastien


On Thursday, June 18, 2009, Shawn Simmons elcid...@gmail.com wrote:
 Greetings Gurus!


 I am attempting to use PHP+MYSQL+APACHE and I have downloaded all the latest 
 verions and installed them on a fresh windows XP install.  Got the Apache 
 server up and running, got MySQL up and running and installed PHP.  Tested 
 PHP with a script containing phpinfo().  Everything works great.

 Wrote a small script to connect to the MySql database.  Tried to run the 
 script (http://localhost/dbscript.php) and I get a 500 Internal Server error. 
  I have been up and down the web for two days looking for a solution and I am 
 completely frustrated.  I HAVE to be missing something.  PLEASE PLEASE PLEASE 
 help.  Thanks.

 MySql is enabled in php.ini.  Paths are set to the php folder.  I have NOT 
 moved or copied any files whatsoever.  Apache version is 2.2.

 Thanks.

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



-- 

Bastien

Cat, the other other white meat

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



Re: [PHP] 500 Internal Error

2009-06-19 Thread Michael A. Peters

Bastien Koert wrote:

Ensure that you have 'show friendly error messages in the Internet
explorer is turned off ( unchecked ).


IE does like to hide errors with this feature.


A 500 internal server error is likely due to apache/php 
mis-configuration, it's doubtful any useful errors would have been given 
to IE to hide.


However, the apache log files might have something - and is always where 
one should look first when the error is server side.


If phpinfo() is working, it might be of value to see the code for the 
script resulting in a 500 internal server error.




Bastien


On Thursday, June 18, 2009, Shawn Simmons elcid...@gmail.com wrote:

Greetings Gurus!


I am attempting to use PHP+MYSQL+APACHE and I have downloaded all the latest 
verions and installed them on a fresh windows XP install.  Got the Apache 
server up and running, got MySQL up and running and installed PHP.  Tested PHP 
with a script containing phpinfo().  Everything works great.

Wrote a small script to connect to the MySql database.  Tried to run the script 
(http://localhost/dbscript.php) and I get a 500 Internal Server error.  I have 
been up and down the web for two days looking for a solution and I am 
completely frustrated.  I HAVE to be missing something.  PLEASE PLEASE PLEASE 
help.  Thanks.

MySql is enabled in php.ini.  Paths are set to the php folder.  I have NOT 
moved or copied any files whatsoever.  Apache version is 2.2.

Thanks.

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







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



Re: [PHP] 500 Internal Error

2009-06-19 Thread Daniel Brown
On Thu, Jun 18, 2009 at 22:05, Shawn Simmonselcid...@gmail.com wrote:

 Wrote a small script to connect to the MySql database.  Tried to run the
 script (http://localhost/dbscript.php) and I get a 500 Internal Server
 error.  I have been up and down the web for two days looking for a solution
 and I am completely frustrated.  I HAVE to be missing something.  PLEASE
 PLEASE PLEASE help.  Thanks.

HTTP code 500 is, as the error message suggests, a *server* error.
 Meaning, it has nothing to do with MySQL, and likely is not related
to PHP, but instead is a problem with the Apache configuration and/or
permissions of the file.  Check to make sure the dbinfo.php file is
owned by the appropriate user and has permissions set to allow it to
be read and executed.  Though not as prevalent as on *nix systems,
permissions errors can and do occur on Windows systems.

If nothing seems out of place there, the next step is to check the
log files.  See if there's anything in Apache's error log related to
this message (there should be, and being a local server, it should be
one of the only things).

Finally, if you can't find anything there, the next phase begins
by asking your question in the right place.  Now that you know it's
not a PHP error that's causing it, and since we can also rule-out
MySQL, we know it's an Apache issue.  Best bet in this case is to go
right to the source and ask on the httpd User Support list[1].  It
could be any number of things, from what I mentioned above about
permissions, to improper encoding, to a module not loading correctly,
to gremlin droppings in your upper memory (hey, it's Windows).

In any case, searching the web for two days was indeed the best
place to start, so showing that intelligence gives you a leg up on
many of the folks on the Internet today --- so there's no doubt in my
mind that you'll have the issue resolved frustrating though it may
be right now.  If worse comes to worst, and you just want to move on
with developing, there are several simple options for deploying a WAMP
system.  I would personally recommend XAMPP[1], but there are many
other choices available as well.


Ref:
^1: http://httpd.apache.org/lists.html#http-users
^2: http://www.apachefriends.org/en/xampp-windows.html

-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1

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



Re: [PHP] 500 Internal Error

2009-06-19 Thread Carlos Medina

Hi,
can you get a test echo with: echo test;exit when you call your
dbscript.php?
If not so. Your Problem is a install problem and need more info about
where, what and permissions (Permissions are allways a problem for this
strange cases)

If you get a test then you problem can be the MySQL Functions you are
doing. Here we need more Information/examples what you are doing.

Regards

Carlos

Thodoris schrieb:



Greetings Gurus!


I am attempting to use PHP+MYSQL+APACHE and I have downloaded all the 
latest verions and installed them on a fresh windows XP install.  Got 
the Apache server up and running, got MySQL up and running and 
installed PHP.  Tested PHP with a script containing phpinfo().  
Everything works great.


Wrote a small script to connect to the MySql database.  Tried to run 
the script (http://localhost/dbscript.php) and I get a 500 Internal 
Server error.  I have been up and down the web for two days looking 
for a solution and I am completely frustrated.  I HAVE to be missing 
something.  PLEASE PLEASE PLEASE help.  Thanks.


MySql is enabled in php.ini.  Paths are set to the php folder.  I have 
NOT moved or copied any files whatsoever.  Apache version is 2.2.


Thanks.



Since you are a windows user and you need to begin coding in PHP etc why 
don't you try WAMP for starters?


http://www.wampserver.com/en/

It gives you all you need in one package.




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