Koozali.org: home of the SME Server

Newbie Question

Beef_UK

Newbie Question
« on: January 19, 2006, 05:52:37 PM »
I have installed SME 6 and have a website very simple website working through it. The website will only work locally, and I am not sure why it will not work when not connected locally. The Ibay I am using is avaliable to the entire internet.

I am using a router to connect the server to the internet, do I need to change setting through this??

Secondly how do I access/install MySQL and PHP

Many Thanks

Offline dmac

  • ****
  • 143
  • +0/-0
    • http://www.rylar.ca
Newbie Question
« Reply #1 on: January 19, 2006, 07:55:19 PM »
Quote
I am using a router to connect the server to the internet, do I need to change setting through this??


You will need to forward the port 80 to the sme server IP address.  Or you could put the SME in Server / Gateway mode and connect directly to the internet.

Quote
Secondly how do I access/install MySQL and PHP


MYsql and PHP are installed as part of the Server installation
If you want to make sure it's working properly, then create a file in /home/e-smith/files/primary/html called test.php, and include the following line:

<? phpinfo(); ?>

Save and then access as "server-name/test.php".  If you get information displayed the PHP is working fine.

For the MySql, you can access from the command line or install phpmyadmin.  
http://mirror.contribs.org/smeserver/contribs//nightspirit/e-smith-phpmyadmin/
"In a world without Fences, why do we need Gates and Windows"

Beef_UK

Newbie Question
« Reply #2 on: January 20, 2006, 09:34:51 PM »
Thankx for your reply. I have already set the server to server/gateway mode already, but i will try to port forward port 80!!

As for the command line, I am not sure how I access it, also I am not sure how to install packages such as the one in your link. How do I do this??

Is there any documentation that you could point me to, or explain how I do this.

Sorry if these questions sound stupid, but after reading the documentation I am still unsure.

Many Thanks

Offline dmac

  • ****
  • 143
  • +0/-0
    • http://www.rylar.ca
Newbie Question
« Reply #3 on: January 20, 2006, 09:59:11 PM »
If you have the Server in server/gateway mode, you can connect the external network card directly to your ISP cable box or DSL Modem.  You do not need to have another routher between your SME server and the internet.  

To access the command line, you will need to be able to access the server directly.  If you have a keyboard, monitor attached, turn on the system and wait for it to boot up.  If the screen shows as login prompt (servername login>) then type "root" and the password you used during the server setup.  
If you see the console when the server starts, then press <ctrl><alt><F2> to change to another terminal and login as above.  This will place you at the command line with "root" or administrator access.
you can use other applications like putty http://no.longer.valid/mylinks/singlelink.php?cid=112&lid=86 to remotely access your server.

What version of SME are you running?  In the Server-Manager console that you access using a web browser, do you have the "update system" option under "Administration"?
If so, download the rpm from the web site.  Open the "update system" applet and browse to the location you stored the rpm file.  Once you have selected the file, press the Update button.  This will install the rpm.  The you can browse to the PHPmyadmin web front end as per the phpmyadmin instructions.
http://www.phpmyadmin.net/home_page/index.php
visit the PHPmyadmin web site, they have some documentation on how to use the app.  Don't use the rpm from their website, it has not been customized for the SME Server.

HTH

Darin
"In a world without Fences, why do we need Gates and Windows"

Beef_UK

Newbie Question
« Reply #4 on: January 20, 2006, 10:19:18 PM »
Unfortunately I have adsl broadband, that is why I need the router. Should I still try to forward port 80??

I am running SME version 6.5, I will try the points you suggested hopefully this will work.

I am guessing that the phpmyadmin front end is accessed through a web browser interface such as the one used for SME?

Thanks for your help on this matter it is much appreciated.

Offline dmac

  • ****
  • 143
  • +0/-0
    • http://www.rylar.ca
Newbie Question
« Reply #5 on: January 20, 2006, 10:26:51 PM »
If you need the router then you will need to forward port 80 to the SME server.
"In a world without Fences, why do we need Gates and Windows"

Beef_UK

Newbie Question
« Reply #6 on: January 20, 2006, 10:29:07 PM »
Great i'll give it a try. Once again thankx for your help

Beef_UK

Newbie Question
« Reply #7 on: January 21, 2006, 05:19:27 PM »
I have found the problem which is stopping my site being viewed externally i.e from the internet. My router is not giving it an IP address or at least it is not showing the address under the attatched devices when the server is turned on.

Any ideas?? The site and server work fine locally!