View previous topic :: View next topic |
Author |
Message |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 4:02 pm Post subject: PHP MyAdmin |
|
|
I've been following the tutorials on trustabyss.com/tutorials, and have installed PHP and MySQL. I'm trying to install phpMyAdmin, but whenever I go to http://127.0.0.1/phpadmin, I get an Error 500 - Internal Server Error Message. What am I not doing right?
Any help would be greatly appreciated!!! |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Tue Jun 28, 2005 4:05 pm Post subject: |
|
|
the exact error should be recorded in: log/cgi.log
Read the last couple of entries, and this should tell you why the error occurred. _________________ Olly |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 4:11 pm Post subject: |
|
|
It says "Broken Pipe" |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 4:53 pm Post subject: |
|
|
Got rid of that message... now it says:
cannot load mysql extension;
please check PHP configuration
Documentation
The documentation says:
Quote: |
[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration".
To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.
Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.
|
Where do I find the software package?
Last edited by p3 on Wed Jun 29, 2005 2:57 pm; edited 2 times in total |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Tue Jun 28, 2005 5:04 pm Post subject: |
|
|
you need the Collection of PECL modules for PHP 5.0.4
Put the files into the ext folder, and uncomment "extension=php_mysql.dll" by removing the ; before it in php.ini. _________________ Olly |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 5:16 pm Post subject: |
|
|
Thanks - I'll try it... |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 5:20 pm Post subject: |
|
|
It still isn't working... same error message. I uncommented the thing in the php.ini files. |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Jun 28, 2005 6:10 pm Post subject: |
|
|
If you read my tutorial properly , you should enable php_mysql.dll like
I mentioned , you need to read it carefully in order to install PHP5. :-)
Sincerely , TRUSTpunk |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 7:04 pm Post subject: |
|
|
I;ll make sure I didn't miss anything - I read it over, and don't think I did, but I'll do it again to be sure. |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 7:12 pm Post subject: |
|
|
It still isn't working - everything is how your tutorial says it should be, and my firewall isn;t the problem. |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Tue Jun 28, 2005 7:59 pm Post subject: |
|
|
what's the exact error your getting?
have you changed the extension_dir from
Code: | extension_dir = "./" |
to
Code: | extension_dir = "ext" |
As I think it mentions in TRUSTpunk's tutorials! _________________ Olly |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Tue Jun 28, 2005 8:12 pm Post subject: |
|
|
Already Done
The link below will show you the error:
http://69.108.163.136/phpadmin
I know php works - i have a script up on my server...[/url] |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Wed Jun 29, 2005 4:20 am Post subject: |
|
|
I've re-installed everything - still same error. |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Wed Jun 29, 2005 11:12 am Post subject: |
|
|
in php.ini what is your extension_dir set to?
and where have you saved the modules, relative to PHP's main folder? _________________ Olly |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Wed Jun 29, 2005 3:01 pm Post subject: |
|
|
olly86 wrote: | in php.ini what is your extension_dir set to? |
"C:/php/ext/"
olly86 wrote: | and where have you saved the modules, relative to PHP's main folder? |
In the "ext" folder.[/quote] |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Wed Jun 29, 2005 3:50 pm Post subject: |
|
|
Can you place your php.ini file and a page with phpinfo embedded in it on your server then post the URLs? If you're paranoid about the phpinfo page, run it manually on your server and copy the entire output to a text file. |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Wed Jun 29, 2005 3:52 pm Post subject: |
|
|
try setting your extension_dir to just "ext" that works for me. _________________ Olly |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Wed Jun 29, 2005 3:58 pm Post subject: |
|
|
Still not working...
Good idea, though |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Wed Jun 29, 2005 7:15 pm Post subject: |
|
|
Anonymoose wrote: | Can you place your php.ini file and a page with phpinfo embedded in it on your server then post the URLs? If you're paranoid about the phpinfo page, run it manually on your server and copy the entire output to a text file. |
Sure
I'll put them up ASAP |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Wed Jun 29, 2005 7:22 pm Post subject: |
|
|
php.ini-dist and php.ini-recommended will not be recognised as php's config file. You need a config file called php.ini either in C:\Windows, or the folder where PHP is installed. _________________ Olly |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Wed Jun 29, 2005 8:19 pm Post subject: |
|
|
EDIT: Created file & accessed phpmyadmin |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Wed Jun 29, 2005 8:54 pm Post subject: |
|
|
You finding it by reading the fine manual.
http://docs.php.net/en/install.windows.manual.html
Quote: |
The next step is to set up a valid configuration file for PHP, php.ini. There are two ini files distributed in the zip file, php.ini-dist and php.ini-recommended. We advise you to use php.ini-recommended, because we optimized the default settings in this file for performance, and security. Read this well documented file carefully because it has changes from php.ini-dist that will drastically affect your setup. Some examples are display_errors being off and magic_quotes_gpc being off. In addition to reading these, study the ini settings and set every element manually yourself. If you would like to achieve the best security, then this is the way for you, although PHP works fine with these default ini files. Copy your chosen ini-file to a directory that PHP is able to find and rename it to php.ini. PHP searches for php.ini in the locations described in The configuration file section.
|
A little bit of reading the instructions on your part could have saved everyone else a lot of time and effort here. |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Wed Jun 29, 2005 9:33 pm Post subject: |
|
|
OK - Glad I got all of that taken care of.
Thanks to everyone who provided info here -
phpmyadmin is now up & runnig, as is phpbb |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Jun 29, 2005 10:05 pm Post subject: |
|
|
We're glad that you got it setup finally. Enjoy Abyss!
Sincerely , TRUSTpunk |
|
Back to top |
|
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Thu Jun 30, 2005 3:50 am Post subject: |
|
|
Don't worry - I already enjoy Abyss... (the "free" thing really helps ;) )
I;ve used Apache before, and, in my opinion, Abyss leaves it in the dust...
Now I can also enjoy phpbb!!!!!!! |
|
Back to top |
|
 |
|