 |
|
13-04-2007, 07:21 PM
|
#1 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
How to host website on OpenSuSE 10.2?
Hi
I have had enough experiences of free web hosts, and now I would like to host my site on my PC. It is on 24X7 with internet, so I am thinking of giving it a try.
The site has HTML and also some Javascript (No php, perl, etc...).
Can anyone tell me how to host the site on OpenSuSE 10.2? I searched but could not find anything. Please give step by step procedure if you can.
Aditya
__________________
--- Console Junkie
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
13-04-2007, 08:16 PM
|
#2 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: How to host website on OpenSuSE 10.2?
Set up a apache web server, see http://en.opensuse.org/Apache
Where did you search and for what?
__________________
http://www.bash.org/?258908
|
|
|
13-04-2007, 08:25 PM
|
#3 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: How to host website on OpenSuSE 10.2?
better install Xampp... its better and easier to use... also includes support for php, sql and stuff
|
|
|
13-04-2007, 08:54 PM
|
#4 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: How to host website on OpenSuSE 10.2?
It's easier to manage Apache from SUSE. They've put GUI for anything and everything
And you will find more docs out there for apache
__________________
http://www.bash.org/?258908
|
|
|
13-04-2007, 09:56 PM
|
#5 (permalink)
|
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,432
|
Re: How to host website on OpenSuSE 10.2?
^^ But that point and click GUI becomes more cumbersome if you have to troubleshoot anything! I once tried OpenSuSE's Apache.. It was nothing but crap, had to edit 2-3 files to get it going.. I would also recommend XAMPP, its a no nonsense package of Apache, Mysql, PHP
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
13-04-2007, 09:58 PM
|
#6 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
@tech_your_future... I searched on "Hosting Website OpenSuSE 10.2" and "Web Server OpenSuSE 10.2"
I want a little detailed info.... I will try this out and then see if there are any more things (problems  )
Aditya
__________________
--- Console Junkie
|
|
|
13-04-2007, 10:41 PM
|
#7 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: How to host website on OpenSuSE 10.2?
If you gonna use XAMPP then check it's docs, if apache then well maybe Suse's site till be good.
Kalpik I know, point and click approach of Suse just messes it all up. That's why I like gentoo and slackware  and even debian is very good when it comes to servers.
__________________
http://www.bash.org/?258908
|
|
|
14-04-2007, 11:44 AM
|
#8 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
OK. I downloaded and installed Xampp. I started it, it started fine, but whenever I try to open http://localhost, then there is a problem.
The message says that the directory is either read protected or server cannot access it, please contact the webmaster.
What should I do?
Aditya
__________________
--- Console Junkie
|
|
|
14-04-2007, 12:57 PM
|
#9 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: How to host website on OpenSuSE 10.2?
i think u need to chmod the localhost directory... For starters chmod it to 777 to give it all permissions
|
|
|
14-04-2007, 03:55 PM
|
#10 (permalink)
|
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,432
|
Re: How to host website on OpenSuSE 10.2?
yup do "sudo chmod 0777 /opt/lamp/htdocs -R"
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
14-04-2007, 04:54 PM
|
#11 (permalink)
|
|
TechTin.com
Join Date: Jun 2005
Location: www.TechTin.com
Posts: 4,090
|
Re: How to host website on OpenSuSE 10.2?
between can I ask you..wht uploading speed U have.
Last edited by ravi_9793; 14-04-2007 at 10:28 PM.
|
|
|
14-04-2007, 09:27 PM
|
#12 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
Thanks. I did that. Now, where should I put all the contents of the site and what address should I type when accessing the site from other computer?
__________________
--- Console Junkie
|
|
|
14-04-2007, 10:23 PM
|
#13 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: How to host website on OpenSuSE 10.2?
chmod 777. Now you are opening a nice security hole. Congrats!
Put the contents in /opt/lamp/htdocs.
To access the site from outside you need to type in your IP address or your domain name, if you have one.
If you have dynamic IP then you can try something like http://www.dyndns.com/
__________________
http://www.bash.org/?258908
|
|
|
14-04-2007, 11:18 PM
|
#14 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
Thanks.. I did that. Now one more thing... How can I create I directory so that no one will be able to read the files in it without a username and password? Like you have here in the forum.. userCP needs a username and password......
Aditya
__________________
--- Console Junkie
Last edited by aditya.shevade; 14-04-2007 at 11:24 PM.
|
|
|
15-04-2007, 12:17 AM
|
#15 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: How to host website on OpenSuSE 10.2?
now ur getting into advanced stuff.. U need a script 4 that. Btw do u hav a static or dynamic ip??.
|
|
|
15-04-2007, 12:49 AM
|
#16 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
^^ I have bsnl broadband. I use the IP address assigned by DHCP. So I guess that it is dynamic.... dunno... But it is the same all the time for the particular port.
I think dynamic.
By the way... which kind of script? Can't I just write a javascript code in my html page... link it to a code file in a directory, and make sure that people cannot read the contents of that directory without a username and pass? So that the . js file will remain unaccessible?
Aditya
__________________
--- Console Junkie
|
|
|
15-04-2007, 03:26 AM
|
#17 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: How to host website on OpenSuSE 10.2?
So, you have dynamic IP, not at all a good way to host a web server. You will have to give the IP to a person who want to connect, everytime. I think dyndns offer services to bypass that thing.
The script written in asp or php would be way better. If it's javascript, i believe people can just read the code and understand how to bypass it.
__________________
http://www.bash.org/?258908
|
|
|
15-04-2007, 09:40 AM
|
#18 (permalink)
|
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,432
|
Re: How to host website on OpenSuSE 10.2?
Or you can just google for .htaccess passwords
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
15-04-2007, 10:01 AM
|
#19 (permalink)
|
|
TheSaint
Join Date: Jun 2004
Location: Antigua
Posts: 3,447
|
Re: How to host website on OpenSuSE 10.2?
Quote:
|
Originally Posted by tech_your_future
So, you have dynamic IP, not at all a good way to host a web server. ........
|
You can also try http://www.no-ip.com
__________________
http://www.neville.in
http://www.linuxrocks.in
"The Future Is Open"
|
|
|
15-04-2007, 12:06 PM
|
#20 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
Thanks kalpik. I tried it and it worked.
But what I was looking for was something like an email system... (Not a mail server), but you enter username and pass and then you get to access private fies. In the .htaccess method, once you give username and pass, you can access the files till the browser is closed. There is no logout function. And also, you are asked for username and pass when you want to access files, there is no option of logging in.
About the dynamic address. As I said, unless I change the port, the IP address is fixed, so that is not a big problem right now. But thanks for the sites. I will check them out as soon as the site is finished.
Aditya
__________________
--- Console Junkie
|
|
|
15-04-2007, 01:57 PM
|
#21 (permalink)
|
|
C# Be Sharp !
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
|
Re: How to host website on OpenSuSE 10.2?
well mate then u should try bytehoard , it's a web-based file manager , along with all things u want
http://www.bytehoard.org/
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
|
|
|
15-04-2007, 07:09 PM
|
#22 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: How to host website on OpenSuSE 10.2?
Hey aditya I hope you still have 777 permission on your /opt/lamp/htdocs. Pleae give me your IP address, since I can read, write and execute anything I like on that directory, I'd like to play a bit.
__________________
http://www.bash.org/?258908
|
|
|
15-04-2007, 07:21 PM
|
#23 (permalink)
|
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,432
|
Re: How to host website on OpenSuSE 10.2?
^^ My server at kalpiknigam.com has all files chmodded to 0777.. Try your heart out there
@aditya, for a logout system, you will have to use scripts only (PHP would be easy..) And just a suggestion, if you only want to share files, why not run an FTP server with individual passwords for each user?
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
15-04-2007, 10:05 PM
|
#24 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
@Tech_your_future.... Sure, I will give you mine as soon as you give me yours....
@Kalpik... Actually it's not only sharing files. We are (me and my friends) kind of trying to build up this database where name, address, mail IDs, Birthdates, etc of all of us will be stored. It is kind of useless, I know. But they want it. I thought that this might be the best idea.
And as no one.... (really , you can visit anytime) knows anything (not anything really, but very little) about computers.... it's up to me.... Now you have the idea of my knowledge, so I think you can guess what is their level....  .... Nothing serious... we have CD/DVD/pendrives to share files.
Aditya
__________________
--- Console Junkie
|
|
|
15-04-2007, 10:35 PM
|
#25 (permalink)
|
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,432
|
Re: How to host website on OpenSuSE 10.2?
Hmm.. For that, the best option would be to learn PHP  Although im not aware of any premade package catering to your needs, but its worth a try to search for it!
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
16-04-2007, 02:05 AM
|
#26 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: How to host website on OpenSuSE 10.2?
__________________
Bad Bad server.....No candy for u!
|
|
|
16-04-2007, 02:13 AM
|
#27 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: How to host website on OpenSuSE 10.2?
So, for storing all that you'd require mysql or postgresql, so yeah xampp might be a better idea. I guess you'd find some tutorial on the net on how to do it.
Here's something that might cater to what you like http://www.corvalis.net/address/ then http://sourceforge.net/projects/php-addressbook/
__________________
http://www.bash.org/?258908
|
|
|
17-04-2007, 07:01 AM
|
#28 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
Thanks guys. Will check them out.... but now, I gotta run....
@ Kalpik... yeah... I want to learn php... but I have my orals going on and then semester exams... plus some other things..... haven't got time  ......
__________________
--- Console Junkie
Last edited by aditya.shevade; 17-04-2007 at 09:46 AM.
|
|
|
17-04-2007, 10:21 AM
|
#29 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: How to host website on OpenSuSE 10.2?
arey yaar tyf it s jus for testing thats y he s keeping it 777 at first.. Btw once the server is setup he can change it to 755 or something appropriate
|
|
|
17-04-2007, 02:44 PM
|
#30 (permalink)
|
|
Console Junkie
Join Date: Jun 2006
Location: USA
Posts: 991
|
Re: How to host website on OpenSuSE 10.2?
^^ Yeah, and by the way, I found this S/W (php script) to be the best suited for what I am doing. The Address Book.
Aditya
One more thing..... I tried the sites given for dynamic DNS..... None worked..... What I have in mind is, can I mask my IP address to something and use that to redirect to my site? Like proxy?
__________________
--- Console Junkie
Last edited by aditya.shevade; 17-04-2007 at 02:44 PM.
Reason: Automerged Doublepost
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|