PDA

View Full Version : [SOLVED] Help me to make a web page



jan quark
December 28th, 2007, 12:51 PM
Do you know some good tutorials or maybe some applications to create web pages?

Every advice is much appreciated.

thx in advance.

Samhain13
December 28th, 2007, 12:52 PM
How much do you know about HTML already?

jan quark
December 28th, 2007, 12:54 PM
Well... lets say... when we sum up everything I know.. nothing. :)
But I am eager to learn.

Samhain13
December 28th, 2007, 12:55 PM
OK. :)

You may want to visit this site: http://www.htmldog.com/guides/htmlbeginner/
There are other tutorials in that website.

jan quark
December 28th, 2007, 12:58 PM
thanks a lot for the prompt answer. I will read through this stuff and I hope my site janquark.110mb.com will not look so pathetic anymore.

I have a blog already, but its like Windows,
it does not do what I want..:)

Samhain13
December 28th, 2007, 01:00 PM
No problem. :)

jan quark
December 28th, 2007, 01:08 PM
I have visited your website "sigh".

Very impressive. Hope one day I will be capable of doing perhaps 50 % of this stuff. :))

LaRoza
December 28th, 2007, 01:10 PM
See my wiki.

here is my home page, feel free to play with the source: http://laroza.freehostia.com/home

GavinZac
December 28th, 2007, 01:13 PM
The best way to learn to make web pages and applications is in this order:
xhtml
css
php
sql
javascript

it is -very easy- to make a website in html first time, but you need to learn to do it right, or in a years time, you'll be trying to un-learn your old habits :)

xhtml and css aren't really programming, but php is, and javascript is. that is when things will get tough if you haven't programmed before :)

atomkarinca
December 28th, 2007, 01:25 PM
Don't forget ajax (http://www.w3schools.com/ajax/default.asp). After gaining some perspective on javascript and xml, you will love the things you can do with those.

LaRoza
December 28th, 2007, 01:25 PM
The best way to learn to make web pages and applications is in this order:
xhtml
css
php
sql
javascript

it is -very easy- to make a website in html first time, but you need to learn to do it right, or in a years time, you'll be trying to un-learn your old habits :)

xhtml and css aren't really programming, but php is, and javascript is. that is when things will get tough if you haven't programmed before :)
XHTML + CSS first

JavaScript third

and server side stuff depending on the server and need of the developer.

Wybiral
December 28th, 2007, 01:26 PM
The best way to learn to make web pages and applications is in this order:
xhtml
css
php
sql
javascript


My preferred order to learn would be: XHTML, CSS, Javascript, Python, SQL

(I'm in no way downing your opinion, just offering my own)

LaRoza
December 28th, 2007, 01:28 PM
My preferred order to learn would be: XHTML, CSS, Javascript, Python, SQL

(I'm in no way downing your opinion, just offering my own)

Being extra cautious?

I second your layout, but when you get up to Python, it is really not essential for "making a web page", but highly useful for server side scripting.

Wybiral
December 28th, 2007, 01:32 PM
Being extra cautious?
Apparently that's what you have to do around here :)
(the smiley-face indicates that I posted this response in a light-hearted manor)


I second your layout, but when you get up to Python, it is really not essential for "making a web page", but highly useful for server side scripting.
Maybe not for "web pages" but for web applications you will need to know some kind of server-side language. Some prefer PHP, some prefer Python, others might fancy Ruby. I'm on the Python boat myself (especially with one of the great frameworks available).

LaRoza
December 28th, 2007, 01:36 PM
Apparently that's what you have to do around here :)
(the smiley-face indicates that I posted this response in a light-hearted manor)


Maybe not for "web pages" but for web applications you will need to know some kind of server-side language. Some prefer PHP, some prefer Python, others might fancy Ruby. I'm on the Python boat myself (especially with one of the great frameworks available).

I know :). You have to watch your back :) Because :) people and bots :) get offended easy :)

Yeah, for the OP: Learn XHTML and CSS, you want more, learn ECMAScript, if you really want to go in, learn how to do server side scripting. That should be in the future, and don't make decisions on it yet. PHP, Python and Ruby are very popular in this area. I vote for PHP, others for Python and some weird people :) for Ruby :)

DON'T ASK WHICH ONE IS BETTER! It will result in a very long thread which be pointless

Note to OP: I realize this post is sort of difficult to follow, because it is a minor parody on a recent forum event.

Samhain13
December 28th, 2007, 01:54 PM
I have visited your website "sigh".
Very impressive. Hope one day I will be capable of doing perhaps 50 % of this stuff. :))

Pfft! That's nothing. It's really not that hard to make once you've had a few weeks practice with HTML and CSS basics. The hard part is not allowing yourself to get carried away with all the nice stuff you can do. :)

Good luck on your work.

jan quark
December 28th, 2007, 02:16 PM
thx again. I can always count on you Ubuntu Forum Members.:)

Kadrus
December 28th, 2007, 02:16 PM
Check this site.
Everything you need to know about web programming
http://www.w3schools.com/

Mr.popo
December 28th, 2007, 02:41 PM
I recommend going to this website: http://www.w3schools.com/

Learn in the order:

- Html/Xhtml
- css
- Javascript
- and maybe python or php for server side scripting

Html and css wont take long to learn but javascript and php or python might. You dont have to learn all of the javascript language because i find some of it is pointless to me when im doing web coding.

I do recommend learning how to use an image editing program like photoshop if your in windows or gimp if your in linux. Then you can make logo's and templates which will make your websites layout look alot better.



goodluck

jan quark
December 28th, 2007, 03:22 PM
thank you all for the usefull links.
I use Gimp, having no problems with it and getting better.
Now its time for web editing.

jan quark
December 28th, 2007, 05:34 PM
Bump. One hundred:popcorn:

GavinZac
December 29th, 2007, 02:23 AM
the reason I put javascript last is because it is very rarely, and -should- very rarely, be vital to a page. its essential if you want fully professionally interactive sites, but if you want a good site that is easy to maintain and works for everyone, learn server side first. it might save you a lot of typing too, when you can use it as a templating system :)

ThinkBuntu
December 29th, 2007, 02:50 AM
I'd say this order:

HTML
CSS
JavaScript (web swiss army knife)
PHP and MySQL
Drupal

Come by my website, www.cssforums.org , for any HTML, CSS, or JavaScript help.

pmasiar
December 29th, 2007, 04:14 AM
Do you know some good tutorials or maybe some applications to create web pages?.

Rather simple way to create webpages is a wiki. You can learn wiki markup in 15 minutes, and create page content without even bothering with HTML or CSS. Of course it is not fancy looking, but it works :-)

See wiki in my sig - pbwiki.com gives you free wiki. Maybe your hosting company has some wiki preinstalled.

coding4fun
December 29th, 2007, 07:17 AM
Have to agree with the other posters in terms of the order to learn things in.

For both HTML and CSS, make sure you use an editor with good syntax highlighting. It'll make your mistakes (and there are bound to be some) a little easier to find. Personally, I like Emacs, but I've heard Bluefish is good on the Linux side. It'll really help too when you get into scripting...client-side with Java (ECMA) Script or server side with PHP or Python. Run it in as many browsers as you can before you make it LIVE. Unfortunately IE6 is still one of the most-used and least standards-compliant browsers out there and you need to look good in IE6.

Keep your HTML as simple and clean as possible and use CSS to make it dance. You can re-shape a whole site with a couple of changes to your CSS file and that's really the way to go.

Good luck with it.

jan quark
December 29th, 2007, 04:00 PM
Hurray!

i am online with the page.:popcorn:

Its rather simple yet. But wait..

zach12
December 29th, 2007, 04:10 PM
Try http://www.w3schools.com/html/default.asp

atomkarinca
December 29th, 2007, 04:12 PM
So you've got the basics settled as it seems. I guess your next stop would be CSS. And I like that you're keeping it simple.

jan quark
December 29th, 2007, 05:17 PM
We are making progress..:lolflag:

The first two wallpapers are online.

I added a little color to the page, but I am not planning to overload the page with flashy blink yada...

Xanderfoxx
December 29th, 2007, 05:32 PM
Check this site.
Everything you need to know about web programming
http://www.w3schools.com/

Dang. I was going to recommend that.

Anyway, in Ubuntu, I use these apps to make it slightly easier:



sudo apt-get install screem bluefish


This simply installs Screem and Bluefish

NOTE: Bluefish is for more advanced users, and will confuse you if you are not already familiar with XHTML and CSS coding.

I'm thinking you start out with gedit, or kate if if you use Kubuntu. I'm not familiar with Xubuntu, so I don't know what the default text editor is for that flavor of Ubuntu.

The only reason I use bluefish myself, is that is has a nifty feature that fills in the metadata and similar headers for me, with is usually pretty tedious when it doesn't have to be.

But this is just me. You may want a nice WYSIWYG XHTML editor for speed's sake, I dont' know.

I hope I helped.

jan quark
December 29th, 2007, 05:46 PM
Thank you all for the time and the pieces of information. Much appreciated.

I downloaded Bluefish. Its quite handy. Learning a lot just by typing html code into the Bluefish editor. My new page is build with a WYSIWYG editor. But now I understand the suorce behind it a little better, and can fix small errors in it...

It will be a long way...8-)

Mr.popo
December 29th, 2007, 05:56 PM
From looking at your websites pag source, you are missing alot of tags. Tags like <html></html> <head></head> <body></body>. These are vital i think if your going to be doing xhtml. If were you i would them anyway if your just doing html because it will get you in the habbit and add more structure to your code and make it more neat.

kamaboko
December 29th, 2007, 05:58 PM
Not sure if this has been posted, but this would be worth your time checking out.

http://www.oswd.org/

jan quark
December 29th, 2007, 06:14 PM
When I type the html and body and head code into the source and save it the editor does not save it. Sad but true.

I am using the web based editor from the freeweb7.com page.

I know they are missing but what shall I do. Scream at my monitor?:)

Samhain13
December 29th, 2007, 06:27 PM
Can't you just do your pages and upload them later?

As Mr. Popo said, those things are very important and I don't think an editor that doesn't allow you to markup your pages properly is worth using.

When you get to the stage where you want to manipulate the way your page elements display through CSS, you're going to have a lot of headaches making poorly marked up pages go the way you want. Just some added advice. :)

jan quark
December 29th, 2007, 06:40 PM
I know Samhain13.. I know "sigh"

I try to make the file with Bluefish and then upload them. Hopefully the editor won't delete my entries again.

Whats the alternative, when the editor continue to mess everything up?

Are there free web hostings which dont operate whith this terrible cPanel?

jan quark
December 29th, 2007, 06:49 PM
I made small changes like adding the missing <html> and <head> stuff in bluefish. then uploaded via the web editor and no change is applied. help. . . - - - . . .
what should I do now...?

Mr.popo
December 29th, 2007, 06:51 PM
I would just use a text editor like gedit. Just something with syntax colouring. Dont use the websites editor. Especially if it does the code for you.

Samhain13
December 29th, 2007, 07:01 PM
Agreeing with Mr. Popo. Don't use the website's editor.
Besides, making your site offline and uploading later ensures that you have a local, backup copy of it-- in case something bad happens to your web host. :)

Have you already gotten an FTP application? That's a very nice thing to have. One that I often use is FireFTP, which is a Firefox extension.

joebanana
December 29th, 2007, 07:03 PM
A site where I began. Very nice site.

http://www.tizag.com/

Kadrus
December 29th, 2007, 07:03 PM
I would just use a text editor like gedit. Just something with syntax colouring. Dont use the websites editor. Especially if it does the code for you.
Yeah I suggest developing your websites and practicing web programming on your localhost..what I mean not published on the world wide web...then when you are done upload them...

ayenack
December 29th, 2007, 07:14 PM
Dang. I was going to recommend that.

Anyway, in Ubuntu, I use these apps to make it slightly easier:



sudo apt-get install screem bluefish


This simply installs Screem and Bluefish

NOTE: Bluefish is for more advanced users, and will confuse you if you are not already familiar with XHTML and CSS coding.

I'm thinking you start out with gedit, or kate if if you use Kubuntu. I'm not familiar with Xubuntu, so I don't know what the default text editor is for that flavor of Ubuntu.

The only reason I use bluefish myself, is that is has a nifty feature that fills in the metadata and similar headers for me, with is usually pretty tedious when it doesn't have to be.

But this is just me. You may want a nice WYSIWYG XHTML editor for speed's sake, I dont' know.

I hope I helped.

+1

Never did any html before but managed to get my page up using these two apps and a book on html code. Dead simple once you get the hang of it to produce a reasonable web page. There's also google pages. Type google pages into google search to find it.

altonbr
December 29th, 2007, 07:29 PM
We've said here to use a basic text-editor, such as Notepad, but you may be tempted to use a dedicated software program such as Macromedia Dreamweaver or Microsoft Frontpage.

Adobe/Macromedia Dreamweaver can run in Linux but if you don't own it, try the free alternative Kompozer (http://www.kompozer.net/screenshots.php).


sudo aptitude install kompozer

If you're comfortable enough with just a text editor than look no further than gEdit... also called "Text Editor" and can be found in Applications > Accessories > Text Editor.

If you're using Ubuntu 7.10, gEdit has a pretty theme called 'Oblivion' (http://ubuntuforums.org/showpost.php?p=3269797&postcount=1). It can be enabled - once in gEdit - by going to Edit > Preferences > Fonts & Colours & clicking on 'Oblivion'. You should see the theme change in the background.

Lastly, with gEdit, it can highlight source code for everything you do on the web (HTML, CSS, PHP, JavaScript) but can only do so once you save the file with a .html, .css, .php or .js extension. If you'd like to make it highlight the syntax BEFORE saving the file, then select View > Highlight mode and find the corresponding language in there.

altonbr
December 29th, 2007, 08:00 PM
From looking at your websites pag source, you are missing alot of tags. Tags like <html></html> <head></head> <body></body>. These are vital i think if your going to be doing xhtml. If were you i would them anyway if your just doing html because it will get you in the habbit and add more structure to your code and make it more neat.

I always like to keep a "skeleton" file on hand for fast development. What is it? A blank, pre-programmed XHTML text document.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>XHTML 1.1 Ready</title>
<link rel="stylesheet" type="text/css" href="./css/screen.css" />
<meta http-equiv="author" content="Owner" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta http-equiv="description" content="" />
<meta http-equiv="keywords" content="" />
</head>
<body>
<!-- start your code here
<p>I am a XHTML 1.1 skeleton document.</p>
end your code here -->
</body>
</html>


I know Samhain13.. I know "sigh"

I try to make the file with Bluefish and then upload them. Hopefully the editor won't delete my entries again.

Whats the alternative, when the editor continue to mess everything up?

Are there free web hostings which dont operate whith this terrible cPanel?

Please see my post above and use gEdit or Kompozer.


Yeah I suggest developing your websites and practicing web programming on your localhost..what I mean not published on the world wide web...then when you are done upload them...

Want to know how to install a localhost?

Run this install schematic that creates a 'localhost' folder in your home folder that links to Apache webserver root.

sudo aptitude -y install apache2.2-common php5 && sudo rm -r /var/www && mkdir /home/$USER/localhost && sudo ln -s /home/$USER/localhost /var/www && echo "Your install was successful! You should now return to <a href=\"http://ubuntuforums.org/showthread.php?p=4028120\">http://ubuntuforums.org/showthread.php?p=4028120</a> and make a comment. You may now delete this file (called index.html)" | tee /home/$USER/localhost/index.html

What does this mean? If everything works, you should be able to go to http://localhost and see that your install is working. Now you can develop your sites in /home/$USER/localhost!

jan quark
December 29th, 2007, 08:02 PM
Good, I understand that I must not use the web editor.

But when I create the page on my computer and then upload it, all my changes are gone. Can it be that this free web space provider is crap?

What services are you using? I wanted to try a free services first. Any suggestions?

bigyoy
December 29th, 2007, 08:04 PM
You might want to look at Bluefish as a good html editor. I've been using it for the past year and I love it!

jan quark
December 29th, 2007, 08:13 PM
using Bluefish already.

Need a good free web space provider. C'mon you guys think hard](*,):shock:

evymetal
December 29th, 2007, 08:24 PM
Here's what I would do (but it requires learning a fair bit of technical stuff)

If you have always-on broadband then I would thoroughly suggest installing apache as above, and getting a url from dyndns.com (free, but you have to log in once every 30 days). Then you have your own webserver - with however much free space you have on your computer.

jan quark
December 29th, 2007, 08:34 PM
Great was fun watching the terminal working.

I installed the above mentioned apache. And what should I do now?

ah , good I copied my index file and what I have already written in Bluefish into the localhost directory and it works. Thanks a lot.

But how do I make my pages visible to the rest of the world???

jan quark
December 29th, 2007, 08:49 PM
I have created an account on dyndns,com. But what now. Can you pls post a step by step, or almost step by step, I am not that dumb :) how to proceed??

ayenack
December 29th, 2007, 09:07 PM
Try this site.

http://www.freewebpage.org/

Don't forget that when you upload your files to the web host they have to have the correct name. index.html guest.html and so on and they also have to be uploaded to the correct directory.

zipperback
December 29th, 2007, 09:15 PM
Do you know some good tutorials or maybe some applications to create web pages?

Every advice is much appreciated.

thx in advance.



http://www.w3.org/ is a valuable resource for you.

- zipperback
:popcorn:

ayenack
December 29th, 2007, 09:25 PM
If you're not to bothered about learning how to code HTML and just want to be able to produce reasonable web pages try amaya from Add/Remove or.

sudo apt-get install amaya

http://www.w3.org/Amaya/ (Amaya's home page on w3.org)

altonbr
December 29th, 2007, 09:30 PM
I have created an account on dyndns,com. But what now. Can you pls post a step by step, or almost step by step, I am not that dumb :) how to proceed??

Go to your router's web address (http://192.168.1.1) and forward port 80 to your computer's IP.

How do you find your computers IP?

Run:

ifconfig | grep 'inet addr:'| grep '192.*' | cut -d : -f2 | awk '{print $1}'

If it's 192.168.?.100 (or any address in the 100 series) then you will have to set your IP address to be static. Let me know if it is, and then I'll help you.

Does that make sense? I have http://altonbr.dyndns.org, I've forwarded port 80 to 192.168.1.50 (my IP) and since Apache already points to /home/$USER/localhost, all I have to do is put my files in there and you're good to go.

jan quark
December 29th, 2007, 09:44 PM
Your support is unique thank you.

My IP is 192.168.178.21. It is a static IP.
I cant go the my routers page, because its password protected :lolflag:and my father has changed the password. When he comes back home I will ask him.

Am I correct the port 80 must be opened for my Ip?

jan quark
December 29th, 2007, 09:55 PM
Update

Ok here we go I opened the http-server port 80 to my IP 192.168.178.21.

What now? How must I configure the dns settings?

jan quark
December 29th, 2007, 09:58 PM
Hurray!

I figured it out for myself thank you very very much.

Best forum members in the world.

my page is:

laiconic.homelinux.com
UPDATE
yea. I can visit my page, but nobody else can. I tested it from three other PCs and page not found message is showing up. Huh?
Anybody knows what I have done wrong?

jan quark
December 29th, 2007, 11:29 PM
Sorry for the many posts.

But I think I know my problem now.
I simply compared the server altonbr's server configuration with mine
I highlited the different spots wirth blood red.:lolflag:

Please see the attached screenshoots.

altonbr
December 30th, 2007, 12:57 AM
OK, just a second: Slow down.

Right now, I'm a little confused as to what you're seeing there with your error page.

Can you see http://localhost? If yes, then we at least know your server is working.

Can you see http://laiconic.homelinux.com? If yes, you've set up the router properly. If no, then you have set your router incorrectly and must get port 80 to route to your PC.

Lastly, if you're trying to look at a .php file called index.php but index.html is showing up first, that's because of their the 'DirectoryIndex' line in your Apache config.

See:

gedit /etc/apache2/mods-available/dir.conf

I do NOT suggest editing this file. Just learn from it.

Wybiral
December 30th, 2007, 02:37 AM
Also, make sure the html page has the right permissions set, or the server can't access the page!

Samhain13
December 30th, 2007, 09:09 AM
Bit of an information overload going on in here. But thanks for the guidance altonbr, cheers! :)

jan quark
December 30th, 2007, 02:26 PM
OK

i slowed down a little.

Point one: when i enter http://localhost into my PC with the ip 192.168.178.21 then I can see me localhost directory. Thumbs up

Point two: when I enter the url laiconic.homelinux.com it is also working fine.

but point three:
It doesnt work on any other PC. When I try to connect to my page with my laptop, it hat the ip 192.168.178.23 "page not found" error massage shows up.

Here my dir.conf file from the apache2 direcotry:
<IfModule mod_dir.c>

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml

</IfModule>

I assume the first files are the prefered ones to open?

Do I have to create my info.php file for a flawlessly working server?
When yes? How?

A lot of questions. But you guys make a fantastic job.
We got pretty far, perhaps we can reach the end of this story, too.


ps: please say can you connect to this adress http://laiconic.dyndns.org/ ???

jan quark
December 30th, 2007, 03:28 PM
:):):):)

I owe you one.

I am online.

I dont have a clue what was the missing link in this riddle.

"exuberantly laughing" so what.

I will mark this fantastic thread as SOLVED.:lolflag:

Mr.popo
December 30th, 2007, 03:53 PM
If your not going to host it from your own computer then you could go to this website: http://www.free-webhosts.com/ . Pick one of the webhosting severs which are ranked quite high.

jan quark
December 30th, 2007, 03:58 PM
Thank you for the link Mr.Popo.

But finally I come to the personal conclusion that only my PC as a server allows me to gain complete control over what I am doing and what happens with my site.

I dont need 101 % up-time and the flashy web editor, which does not what I tell it to do.

So there are certain fantastic free web hosting sites, but nor for me at this time in space.

Samhain13
December 30th, 2007, 04:02 PM
But finally I come to the personal conclusion that only my PC as a server allows me to gain complete control over what I am doing and what happens with my site.

I think this is a rule of thumb. Even when you get paid hosting but you're on shared hosting, you really don't get to have a say on a few things that may be important to you.

Congratulations on making the thing work, by the way. :)

altonbr
December 30th, 2007, 05:17 PM
Perfect, I can connect to http://laiconic.dyndns.org/ !!! Awesome!


Thank you for the link Mr.Popo.

But finally I come to the personal conclusion that only my PC as a server allows me to gain complete control over what I am doing and what happens with my site.

I dont need 101 % up-time and the flashy web editor, which does not what I tell it to do.

So there are certain fantastic free web hosting sites, but nor for me at this time in space.

Exactly, I have my own desktop computer and then a $4,000 CDN server sitting in my office for the same purpose. I don't think I've ever going to look back.

If you really want, buy a UPS (Universal Power Supply) for your computer so if the power goes out, your computer is still online. Connect your router to it as well so your Internet stays up during a power outage... then, if you can also afford, purchase another modem from your local ISP to have dedicated Internet. Of course, I'm getting way ahead of myself here since you'd probably only need all of that if your site was getting 500+ users per day. But now you see how easy it is eh?

CptPicard
December 30th, 2007, 05:30 PM
But finally I come to the personal conclusion that only my PC as a server allows me to gain complete control over what I am doing and what happens with my site.


Frankly hosting from your own box is a total PITA, and any host should just allow you to upload your files via FTP, after which you can pretty much forget about them. I honestly don't understand the magical mangling that was done to your HTML... whatever it was, it's a bit early to draw that kind of conclusions :)

altonbr
December 30th, 2007, 07:01 PM
Frankly hosting from your own box is a total PITA, and any host should just allow you to upload your files via FTP, after which you can pretty much forget about them. I honestly don't understand the magical mangling that was done to your HTML... whatever it was, it's a bit early to draw that kind of conclusions :)

But if you're just hosting a simple website, having the website on your desktop and a symlink to /home/$USER/localhost couldn't be easier.

jan quark
December 30th, 2007, 07:44 PM
In an hour or so I will post a tutorial on my new page, how to setup the server and everything. Everyone who helped me is going to be mentioned by name, is this OK.? When not say it here clearly.

It will be a summary of this sometimes chatic post (my fault).

I will also post a link to this post. so everyone can read the whole story, so to speak.

CptPicard
December 30th, 2007, 08:00 PM
But if you're just hosting a simple website, having the website on your desktop and a symlink to /home/$USER/localhost couldn't be easier.

As opposed to having your website on your desktop and copying it over that can be automated, or even having your website on your server and just "mounting" it over something like konqueror's FTP ioslave, when it behaves essentially as a local directory? You could also do something like sshfs, if host allows ssh...

Setting up Apache and dyndns and routing through your home gateway isn't exactly trivial, plus you're exposing your desktop machine to the open Internet..

jan quark
December 30th, 2007, 08:20 PM
There are always pros and cons.I chosed this way, someone other will choese another way. I am not that much afraid of exposing my machine to the cruel open internet. Perhaps I am naive...

But this fear is based upon the abnormal behaviour of the people out there, not upon the idea behind the world wide web.

PS: the tuorial how I--no WE managed to get my site online is..well online now. Waiting for your replies.

altonbr
December 30th, 2007, 09:06 PM
As opposed to having your website on your desktop and copying it over that can be automated, or even having your website on your server and just "mounting" it over something like konqueror's FTP ioslave, when it behaves essentially as a local directory? You could also do something like sshfs, if host allows ssh...

Setting up Apache and dyndns and routing through your home gateway isn't exactly trivial, plus you're exposing your desktop machine to the open Internet..

What you are proposing isn't exactly trivial either. Many hosts don't even allow SSH connections too (like you said). My way - using that one bash script - install Apache2.2 and PHP5 and creates a symlink in your home directory for each copying and pasting.

Yes, it open your machine to the Internet, but only port 80. Apache is used by so many vendors worldwide that opening port 80 to your machine and letting Apache handle the requests shouldn't be that big of a security risk. Is it a security risk in short? Yes.

He could always install Apache2.2 and PHP5 in a virtual host using VMware Server and then NFS /var/www but now we're back to the whole "Can a beginner really do this?"

It's his choice to use this method, but you're correct in stating the security risks... I should have in the first place.

That being said, I've done this exact sequence of steps for Apache/PHP/localhost for years and have had no problems.

altonbr
December 30th, 2007, 09:20 PM
Here's the tutorial he is referring too: http://laiconic.dyndns.org/tutorial2.html

One suggestion I'd make is to make a 'code' class in your CSS for all the code I asked you to enter.

IE:

/* ... */
code {
display: block; /* appear on its own line */
color: #fff; /* font color: white */
background-color: #000; /* background colour: black */
padding: 5px; /* padding inside the black box */
margin: 10px 0; /* 10px margins (top and bottom) for spacing between elements */
}
/* ... */

Also, I would reference each fit of information with a footnote. How?

Well, for example with my post for the Apache script, use this URL as a reference: http://ubuntuforums.org/showpost.php?p=4035625&postcount=43. Then add a footnote delimiter via

<code>sudo aptitude -y install apache2.2-common php5 && sudo rm -r /var/www && mkdir /home/$USER/localhost && sudo ln -s /home/$USER/localhost /var/www && echo "Your install was successful!" | tee /home/$USER/localhost/index.html</code><sup><a href="#footnote1">[1]</a></sup>

<!-- more content here -->

<h1>Footnotes</h1>
<p id="footnote1"><a href="http://ubuntuforums.org/showpost.php?p=4035625&postcount=43">[1]</a> - 'altonbr' shows me how to setup Apache in Ubuntu 7.10 (Gutsy)</p>

At this point, since you're practically blogging, it may be in your interest to check out WordPress and install that. You'll need mysql installed and know how to configure it however.

Lastly, maybe where it says credits, give a link to the persons homepage or Ubuntu Forums profile page. I really don't care what you do as the information I give you is yours to keep but that just seems like the proper way to do it.

ayenack
December 31st, 2007, 09:31 PM
Hello jan quark. Just took a look at the site good work. Had one little problem with it and that's having to press the back button to navigate to previous pages. Maybe you could add links at the bottom of the page to link to the main pages on your site to make navigation easier. ;)

hessiess
January 28th, 2008, 07:24 PM
this thread has been halpfal :)

dus this page work?

http://hessiess.dyndns.org/index.php

Miriam77
January 28th, 2008, 08:02 PM
this thread has been halpfal :)

dus this page work?

http://hessiess.dyndns.org/index.php

Sorry, but it never loads. It can be a server problem, I didn't get an error.

Miriam

Miriam77
January 28th, 2008, 08:07 PM
Hello jan quark. Just took a look at the site good work. Had one little problem with it and that's having to press the back button to navigate to previous pages. Maybe you could add links at the bottom of the page to link to the main pages on your site to make navigation easier. ;)

Yes, it is not a good practice to rely on the back button.

I found www.useit.com to be invaluable for web page design and usability.

http://www.useit.com/alertbox/

Miriam

hessiess
January 28th, 2008, 08:45 PM
Sorry, but it never loads. It can be a server problem, I didn't get an error.

Miriam

any ideas whats wrong with it?

port 80 is is forwerded.
(192.168.1.171)

the page is working here on lochost and my laptop.

EDIT:

http://validator.w3.org/check?uri=http%3A%2F%2F192.168.1.171&charset=%28detect+automatically%29&d says my ip is not public

Miriam77
January 28th, 2008, 09:10 PM
any ideas whats wrong with it?

port 80 is is forwerded.
(192.168.1.171)

the page is working here on lochost and my laptop.

EDIT:

http://validator.w3.org/check?uri=http%3A%2F%2F192.168.1.171&charset=%28detect+automatically%29&d says my ip is not public
Make sure you ISP allows live servers. Often they don't unless it is that type of an account.

altonbr
January 28th, 2008, 09:22 PM
Works for me...

hessiess
January 28th, 2008, 09:40 PM
thanks for your help :) http://www.hessiess.dyndns.org/ seems to work now, though i don't know why it dident earlier :confused:

Miriam77
January 28th, 2008, 10:01 PM
thanks for your help :) http://www.hessiess.dyndns.org/ seems to work now, though i don't know why it dident earlier :confused:

It works now. Is the domain name new?

hessiess
January 30th, 2008, 08:16 PM
think i have found the problem, my ip adress changes all the time, how can i fix that?

LaRoza
January 30th, 2008, 11:27 PM
think i have found the problem, my ip adress changes all the time, how can i fix that?

Get a new account with your ISP for a static IP address. It will cost more. Or you can find another host, which may be cheaper.

CptPicard
January 30th, 2008, 11:31 PM
Or run the dyndns update client that sends your current IP to the servers.

skotos
October 6th, 2008, 02:27 PM
XHTML + CSS first

JavaScript third

and server side stuff depending on the server and need of the developer.

I definitely agree, but then, instead of studying JavaScript from scratch I would suggest you starting directly with something like jQuery that has completely changed the way client side programming can be faced.

Traditional structures, loops and conditions get pale when compared to its syntax that can - anyway - be mixed with the traditional JavaScript it is built in.

PHP is indeed the currently most strategic language to learn on server side cause it is free and cross platform, but... digging in objects and classes is indeed something that requires you to study a lot before becoming efficient and - on the contrary - using it without the right knowledge will leave you stuck at some point...
So you do not have to be in a hurry if you want to start developing for the web, because lot of knowledge is required.
You will have to start from easy client side targeted pages, then move towards server side programming and last -but not least- sql language.

Wow... A bit overwhelming, but intriguing...
Oh, you will always need something to drink - or to smoke! - to stay calm on every MS IE release, and lots of coffee to debug the latest Flash behavior...

This is the life you may expect to have if you enjoy developing for the web... but you will never give up, once you will have started getting back what you have invested on it...

Relax and start studying... This is what you will always have to do... even when you will be short of time, in a hurry, or late!!!:popcorn: