Koozali.org: home of the SME Server

Web Application Installation

Offline Bud

  • *
  • 487
  • +0/-0
Web Application Installation
« on: April 20, 2008, 05:58:03 PM »
Hi Guys hope you can Help

I have created an i-bay "mycsm" with all the Relevant rights etc. then I copied all the Files from a PHP CSM into the folder "mycsm\html". When I start the Installation file "install.php" I get asked some questions regarding my Database setup: 1. Hostname, 2. Username, 3. Password, 4. Database Name.

My questions are:
1. Do I create a MySQL Database with "phpmyadmin"
2. What will be my "hostname" - is this my Server Name
3. The Database username and password will be what? root and root password?

Sorry for the Noob Questions  :P

Regards

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Web Application Installation
« Reply #1 on: April 20, 2008, 06:16:33 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Web Application Installation
« Reply #2 on: April 20, 2008, 06:51:41 PM »
My questions are:
1. Do I create a MySQL Database with "phpmyadmin"
2. What will be my "hostname" - is this my Server Name
3. The Database username and password will be what? root and root password?

ad 1. That would probably be the best alternative, but perhaps it is easier to follow the SME Server shell instructions in the wiki. It instructs you how to create the database as well as configure a username and password for your application.

ad 2. This will most likely be the host where the database server is running. If that is the case it should most likely be localhost. If it is the outside location where your first page of the web application is located it might be the URL at which it can be reached (I guess it is the database server and hence 'localhost' in your case).

ad 3. The answer is in my first point, but I can explain a bit more. The root user is for administration only and is set up to be more secure than on normal configurations as the root password is supplied to the user by a special mechanism, which makes it possible to use a highly encrypted and secure password as you do not need to type it yourself, when accessing mysql from the SME Server shell.
You should never run applications as root user, you should always create a user with the proper privileges to the proper database(s) on your server (which you do in step 1). The username and password you should supply are the ones you entered in step 1.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)