LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-14-2005, 08:54 AM   #1
rickycen
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
HTML & Image


I have gone to multiple websites, and tried to figure out and reverify, that website documents go in the public-html folder.

Which looks like this inside:

File Manager

--------------------------------------------------------------------------------

Click on a folder icon to navigate.
Click on a name to view its properties.


/ public_html / (Current Folder)
Create New Folder
Upload file(s)
Up one level
_private 755
_vti_bin 755
_vti_cnf 755
_vti_log 755
_vti_pvt 750
_vti_txt 755
cgi-bin 755
images 755
Create New File
.htaccess 0 k 644
_vti_inf.html 1 k 644
index.html 6 k 644<--------------------
postinfo.html 2 k 644

___________________________________________________________

It still has not worked? The server is set up for php nuke, from the host. So I am wondering if it will work since my document is in html?
and
Is a JPG backround sufficent, or does the image have to be another type?

Any hep appreciated immensly!!!

Thanks ahead of time!!!


Rick

 
Old 08-14-2005, 09:22 AM   #2
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
I'm not sure what is not working. The structure of the site seems OK to me, although, as a web developer I'm a bit more "sensitive" about where files go and typically have an api directory for CSS and js files, a mmedia for swf files and an images directory for ... well you know.

Assuming that your setup of apache is correct you should have no problems seeing your index.html on that site. I also assume that in your /etc/apache/httpd.conf you enabled the use of /home/<user>/public_html. If you did not that is probably the reason you are not able to see the pages.
Other that that, the structure of the site if mostly for organizational purposes and to make development and maintenace easy.

As per images on the web, browsers can handle .jpg, .gif, and .png anything else will not work.

Hope this helps.

Rick

Last edited by ralvez; 08-14-2005 at 09:25 AM.
 
Old 08-14-2005, 11:53 AM   #3
rickycen
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
re: apache setup?

Well I am a newbie at this stuff, and I hate to bother people, but need to start and try to learn somehow....thanks for your time, it's much appreciated.

You said: "I also assume that in your /etc/apache/httpd.conf you enabled the use of /home/<user>/public_html. If you did not that is probably the reason you are not able to see the pages."

The server comapny "Hypernia" set it up for me, I have been able to open up cPanel, and ftp. That is my extent of the Linux knowledge so far. I do know apache servers, are supposed to be one of the best things out there. However, as far as "enabling /home/<user>/public_html", I have no idea how to do that?

My cPanel:


Welcome dbhclan.org! Last login from: xxx.xx.xx.xxx.



Please update your contact information here.


General account information:

Hosting package undefined
Shared Ip Address 204.11.239.20
Subdomains 0 / unlimited
Parked Domains 0 / 0
Addon Domains 0 / 0
MySQL Databases 0 / unlimited
Disk usage 0.48 Megabytes
SQL Disk usage 0.00 Megabytes
Disk space available 499.52 Megabytes
Bandwidth usage (current month) 7.47 Megabytes
Email Accounts 0 / unlimited
Email Forwarders 0
Autoresponders 0
Mailing Lists 0 / unlimited
Email filters 0
Ftp Accounts 0 / unlimited

General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.4.22-1.2199.nptl
Machine Type i686
Apache version 1.3.33 (Unix)
PERL version 5.8.3
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.3.10
MySQL version 4.0.22-standard
cPanel Build 10.0.0-CURRENT 160
Theme cPanel X v2.5.0
Documentation Click to View





Mail Webmail Change Password

Parked Domains Addon Domains


FTP Manager File Manager

Disk usage Backup

Password Protect Directories Error pages

Subdomains MySQL Databases

Redirects

Frontpage Extensions Web/FTP Stats

Raw Access Logs Raw Log Manager

Error log Subdomain Stats

Chatroom PhpMyChat

Bulletin Board CGI Center

Scripts Library Agora Shopping Cart

Cron jobs Network Tools

MIME Types Apache Handlers


Manage OpenPGP Keys HotLink Protection

Index Manager IP Deny Manager

SSL Manager

____________________________________________________________

As far as image, I normally go with JPG and GIF, because they use up minimal space. I just didnt know if maybe, Linux did NOT accept either of those.

Thanks immensly, Rick
 
Old 08-14-2005, 04:02 PM   #4
rickycen
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
server issue

Apparently, it was a server issue, and when I looged on today it said "dbhclan.org soon to come". I then recieved and email from them, claiming, they corrected the issue and it was ready.

I attempted to upload the index.html to the site. The writing is there, however I can't seem to get a backround color, or backround image to load up?
I did load the image to the public_html also.

I am thinking, there must be some type of html code, that I need so the server can use the JPG I sent?

Does anybody know what this is or how to do it? I tried numerous times without success?

Again, I appreciate your help immesnly and thanks!

Rick
 
Old 08-14-2005, 06:52 PM   #5
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
You are actually correct. Just because you have an image in the server that you intend to use as background it will not be displayed unless you specifically "tell" the web served to do so.
This is how your code should look like if you want to display an image in the background:
<body background="images/mybackgroundimage.jpg">
If on the other hand you want to use a color as a background you would use:
<body bgcolor="#FFCC66">

Notice that in the first case I'm indicating the path to the image based on the place where my html document resides. This means that I have the html document in public_html and that the sub-directory images pertains to the same directory.

On the second example we are using hexadecimal notation. Be careful not to skip the "#" as it will cause problems with some browsers, and your color will not display.

Good luck.

Rick
 
Old 08-14-2005, 07:52 PM   #6
rickycen
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
look?

Ok well, I assume that "myimages was an examle?

So I tried this (sice it is the name of the image I want to use[and is in the public_html foler also])

<body background="images/dbh_page.jpg">

But it did not work? I have tried some variations of that also?

Rick

P.S. - 2nd thought here? Does it matter whether it is on the first or last line of the script? Just thinking of why it doesn't work?

Last edited by rickycen; 08-14-2005 at 07:57 PM.
 
Old 08-14-2005, 09:10 PM   #7
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
What matters here is the location of the image. If you have a directory called images and an image called "dbh_page.jpg" in that directory then that will work.
If your dbh_page.jpg is somewhere else it will not.

I think that this web site will help you achieve what you want.

http://www.w3schools.com/html/default.asp

It is a tutorial to create your web site.

Hope this helps.

Rick
 
Old 08-14-2005, 09:51 PM   #8
rickycen
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks........

I havent found anything like the web link you sent me.

Appreciated!

rick
 
Old 08-15-2005, 12:30 AM   #9
rickycen
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
It did work

I have no idea what I did before? I must have typed something wrong? jpg name? something? I sat here all day working on this, finally gave up for a few hours. Came back tried again and it worked!

I fussed a bit to get things lined up,

the only thing left to figure

out is why the lines

are like this? (everyther space?)

I am gonna hit that html site after work.

Thanks again Rick!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image slicer and HTML cleaner remi Linux - Software 0 12-01-2005 03:53 PM
silicon image 0680 pci-raid controller && Fedora happy78 Linux - General 1 06-07-2005 01:07 AM
perl emailing html with embedded image davesbedroom Programming 2 06-01-2005 10:49 AM
HTML && scripting DaFrEQ Linux - Software 0 12-03-2002 01:41 PM
HTML code for an image? chadm1967 General 4 09-04-2001 04:41 PM


All times are GMT -5. The time now is 06:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration