If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL and Apache

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-25-05, 16:21
snakesolid snakesolid is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
MySQL and Apache

Hello, i'm new and I have a question:

On my router i've opened port 80 and port 8080,
and i've installed Apache and MySQL-NT. On a site
i've downloaded the Criminals-script (online game). It's
a .php script but I don't know how to install the script
correctly. When i've put some codes in the database it says
there is a error with $cfg['Servers'][$1]["pmadb']. When I go to
my site (www.snakesolid.zyns.com/criminals/ it says there is still
an error in the database, but I don't know where to put the .php files.
Cause I tried to put them in my /www directory of apache, but then it
still says the error. I just don't know where to put which file and where
to install what in my database. It's all DNS and it's realy difficult. Can
someone help me to make my database correct. To give me a example?

I want to thank you guys.......


Greetzzzzzz SnakeSolid.
Reply With Quote
  #2 (permalink)  
Old 01-25-05, 16:24
snakesolid snakesolid is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
Extra

The Apache server has made this maps:

Mysql
www
php
apache


maybe you need this ?
Reply With Quote
  #3 (permalink)  
Old 01-25-05, 16:49
snakesolid snakesolid is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
And something else (yeah sorry) but the Mysql I use is v.1.4
Reply With Quote
  #4 (permalink)  
Old 01-26-05, 20:21
Steve T. Steve T. is offline
Registered User
 
Join Date: Sep 2003
Location: So. Cal. USA
Posts: 142
Howdy! Umm... let me try to clarify some things...

Apache is a web server application (httpd) and serves web pages.
MySQL is a database that allows you to store/manipulate data.
PHP is scripting middleware that can be used to interact between the two.

In a typical Apache/MySQL/PHP (AMP) set up, you would put your .php files in the Apache root directory with other web pages and access them through a web browser. PHP does not necessarily come with Apache and may need to be installed or activated. You can test this by making a text file called something like "test.php" and putting the following in it...

<? phpinfo(); ?>

If you visit your site, (http://localhost/test.php or whatever) and you see a PHP report of your configuration, then PHP is installed and working properly. If you see just the <? phpinfo(); ?> code or something else, then PHP is not installed.

By writing PHP code with HTML, you can write code to perform actions, including to read or write data to your MySQL databases. I would recommend also looking into phpMyAdmin as a helpful MySQL management tool.

The error you seem to be getting seems to be some kind of configuration error. If so, you'll have to fix it somehow... maybe changing the configuration line to whatever it's supposed to be or maybe changing something to make the configuration true.

Good luck!
--St
Reply With Quote
  #5 (permalink)  
Old 01-27-05, 01:36
snakesolid snakesolid is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
thanks,

I already got AMP installed (so when I make the test file it works) but
I just need to configure my database (like you say) but that might take some
time. I want to say thanks.

Greetzzzz SnakeSolid
Reply With Quote
  #6 (permalink)  
Old 01-27-05, 01:43
snakesolid snakesolid is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
Oh, by the way, when I goto http://localhost/phpmyadmin/ it don't start index.php automaticly, do you know how to make it start automaticly?
Reply With Quote
  #7 (permalink)  
Old 01-29-05, 15:38
snakesolid snakesolid is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
which configuration file do i need to edit? do you know ?
Reply With Quote
  #8 (permalink)  
Old 02-03-05, 13:53
snakesolid snakesolid is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
Please, can someone help me?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On