Koozali.org: home of the SME Server

Where do I put my website code? (I know, I'm a Noob!)

Offline wifinetguy

  • **
  • 37
  • +0/-0
    • http://www.astechnologysolutions.com
Where do I put my website code? (I know, I'm a Noob!)
« on: June 29, 2006, 03:51:34 PM »
I'm sorry for such a basic question. But I have a company website and it's currently residing on my ClarkConnect server. I'm moving to my newly installed (great so far!) SMEServer. On my CC box, my website is under /var/www/html. Where do I put it in my SME box? Do I create an ibay for it (still not sure what those are for) or does it reside elsewhere?

Thanks in advance for any help.

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Where do I put my website code? (I know, I'm a Noob!)
« Reply #1 on: June 29, 2006, 07:49:27 PM »
it goes in
/home/e-smith/files/ibays/ ibay name /html
If you think you know whats going on, you obviously have no idea whats going on!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Where do I put my website code? (I know, I'm a Noob!)
« Reply #2 on: June 30, 2006, 08:33:29 AM »
Quote from: "crazybob"
it goes in
/home/e-smith/files/ibays/ ibay name /html
You can do that, but to have full control (e.g. for better securoty settings and user privileges etc.) you should create a directory in the /opt directory. After that make a custom template in the /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ to configure the web location.
To reflect the configuration changes you need to do the following (after you have created the template:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86httpd-e-smith sigusr1

The first line will regenerate the httpd configuration file to reflect the changes you made, the latter one will restart the httpd daemon to reflect the changes you made.
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)

cidhosting

Where do I put my website code? (I know, I'm a Noob!)
« Reply #3 on: June 30, 2006, 08:56:59 AM »
That depends will you be uploding via FTP or directly through Root of the server?

If you upload Via FTP program you will be up loading to your website. You will need an FTP program, the IP address, User Name, and you will need the Password. You will upload the html files, php files to html. The cgi or pl files to the CGI-BIN. You will also need to change the attrobutes of each .cgi or .pl file to enable them to work right.

Offline NickCritten

  • *
  • 245
  • +0/-0
Where do I put my website code? (I know, I'm a Noob!)
« Reply #4 on: June 30, 2006, 09:36:27 AM »
DON'T use FTP, it's insecure and has been disabled by default for a reason.

You should be using SCP/SFTP, or you can even use plain old SMB if you are on the LAN.

DO NOT USE FTP
...
Nick

"No good deed goes unpunished." :-x...

Offline wifinetguy

  • **
  • 37
  • +0/-0
    • http://www.astechnologysolutions.com
Where do I put my website code? (I know, I'm a Noob!)
« Reply #5 on: June 30, 2006, 12:27:12 PM »
Thanks for the very informative replies, everyone. But if I put it in an ibay, doesn't that mean that my customers will have to know the name of the ibay? I own my domain and currently they just have to go to my domain (www.astechnologysolutions.com) to be presented with my webpages. That's what I want to happen with my SMEServer.

Offline NickCritten

  • *
  • 245
  • +0/-0
Where do I put my website code? (I know, I'm a Noob!)
« Reply #6 on: June 30, 2006, 12:30:55 PM »
Put your pages in the Primary ibay.

If you have a DNS entry for www.domain.com pointing at your server, then your users just put in www.domain.com into their browser and they will see the contents of Primary

;-)
...
Nick

"No good deed goes unpunished." :-x...

Offline wifinetguy

  • **
  • 37
  • +0/-0
    • http://www.astechnologysolutions.com
Where do I put my website code? (I know, I'm a Noob!)
« Reply #7 on: June 30, 2006, 12:40:09 PM »
Great! Thank you!

Just a quick note to the "Comminity": I have used ClarkConnect for about a year or so. And while I think it's a very good product I've been extremely pleased with SMEServer so far. The product seems very solid, has great management capabilities and features. But what sets it apart for me so far is the "Community". There is so much attitude over there from some of their regulars, and especially their moderator, that it's sometimes hard to get any kind of an answer. My experience so far at contribs.org's forum has been very positive in my short time of visiting. Thank you all for being helpful.

OK, that's enough. Getting misty eyed  ;-)

Alvin

Offline dsemuk

  • *****
  • 269
  • +0/-0
Where do I put my website code? (I know, I'm a Noob!)
« Reply #8 on: June 30, 2006, 07:08:19 PM »
Quote from: "wifinetguy"
Just a quick note to the "Comminity": I have used ClarkConnect for about a year or so. And while I think it's a very good product I've been extremely pleased with SMEServer so far. The product seems very solid, has great management capabilities and features. But what sets it apart for me so far is the "Community". There is so much attitude over there from some of their regulars, and especially their moderator, that it's sometimes hard to get any kind of an answer. My experience so far at contribs.org's forum has been very positive in my short time of visiting. Thank you all for being helpful.


Hi and welcome to the wonderful world that is SMEServer land, glad you like the excellent product. I've not used CC, SME meets my needs so no need to look at alternatives.

Alvin the following isn't aimed at you, but as you said how friendly the contribs.com community is, I thought I would just share what *isses me off.

I will try to help anyone, but people come on here start asking very basic questions, without first using the search facility and reading the documentation.  Most basic questions are answered in one of those two places.  People are very willing to help if people try to help themselves first.  It isn't alot to ask.

I hope I haven't put you off. :-(

Dave
--
Esmith/Mitel/SME server  :-D...

Offline wifinetguy

  • **
  • 37
  • +0/-0
    • http://www.astechnologysolutions.com
Where do I put my website code? (I know, I'm a Noob!)
« Reply #9 on: June 30, 2006, 07:33:01 PM »
Dave, you haven't put me off. But in this case, I am guilty of what you said. I didn't know where to look for the docs but then found it. It was hidden (uh, yeah, right in the same left-hand frame as the link for the forum). I found it after posting. So I've got a link to the docs for myself and will certainly try there first and then searching forums next.

As for CC, I could understand the attitude if it was very basic questions that should be found before posting. But the attitude came from questions that spanned the spectrum. It was apparent on questions from all people.

Anyway, thanks for the post.
Alvin

Offline wifinetguy

  • **
  • 37
  • +0/-0
    • http://www.astechnologysolutions.com
Where do I put my website code? (I know, I'm a Noob!)
« Reply #10 on: July 02, 2006, 02:12:43 PM »
NickCritten,

I've tried to put my site in Primary (/home/e-smith/files/ibays/Primary) but I still can't get to the site via http://www.mydomain.com.

What am I missing? If I put in a file parameter like http://www.mydomain.com/login.php it says that it can't find the file. But it is there.

Thanks in advance...
Alvin

Offline raem

  • *
  • 3,972
  • +4/-0
Where do I put my website code? (I know, I'm a Noob!)
« Reply #11 on: July 02, 2006, 03:11:47 PM »
wifinetguy

> I've tried to put my site in Primary (/home/e-smith/files/ibays/Primary)

That should be
/home/e-smith/files/ibays/Primary/html
...

Offline wifinetguy

  • **
  • 37
  • +0/-0
    • http://www.astechnologysolutions.com
Where do I put my website code? (I know, I'm a Noob!)
« Reply #12 on: July 02, 2006, 03:27:52 PM »
RayMitchell,

Yes, I'm sorry. I forgot to put that in my post. I do have the webpage "stuff" in the /home/e-smith/files/ibays/Primary/html directory.

Offline raem

  • *
  • 3,972
  • +4/-0
Where do I put my website code? (I know, I'm a Noob!)
« Reply #13 on: July 02, 2006, 03:37:13 PM »
wifinetguy

I assume your server is configured with your main domain name and that external DNS records point to your server.

By default there is a basic index file created in every ibay including Primary. If it's not still there please copy it back temporarily.
What happens if you just browse to
http://www.mydomain.com


> http://www.mydomain.com/login.php it says that it can't find the file.

Please give the exact error message.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Where do I put my website code? (I know, I'm a Noob!)
« Reply #14 on: July 02, 2006, 03:55:31 PM »
wifinetguy

I tried going to
www.astechnologysolutions.com
and I get the
This web site is under construction
message. That means the original index.htm file is still in ...Primary/html.

You had perhaps better delete or move that, it may be interfering.
...

Offline wifinetguy

  • **
  • 37
  • +0/-0
    • http://www.astechnologysolutions.com
Where do I put my website code? (I know, I'm a Noob!)
« Reply #15 on: July 02, 2006, 04:03:02 PM »
RayMitchell,

Thanks very much for your testing for me. I've removed the index.htm file and it still displays the same message. I promise it's the /home/e-smith/files/ibays/Primary/html. There's only one, right??  ;-)

Offline raem

  • *
  • 3,972
  • +4/-0
Where do I put my website code? (I know, I'm a Noob!)
« Reply #16 on: July 02, 2006, 04:22:36 PM »
wifinetguy

Now I just get a blank page when I browse to your main site.
I suspect you need to configure a config.php file or something similar for your web application. Tell it the paths for your web site files, which will be
/home/e-smith/files/ibays/Primary/html

If that doesn't fix it, then you might check that the files have appropriate permissions & ownership.
cd /home/e-smith/files/ibays/Primary/html
ls -al
review the permissions & ownership
...