editing websites

23 posts / 0 new
Last post
#1 Sat, 02/21/2009 - 23:03
eeeprom

editing websites

Hi, I have installed webmin,and virtualmin. All seems to be working correctly but if I go to use the file manager and go to my website and use the edit every thing come up but the images. It just shows them as blank boxes.

can any one tell me what I have set up wrong?

Thanks

Sun, 02/22/2009 - 00:03
Joe
Joe's picture

Sounds like DNS isn't working for the domain on which the site resides. Usually, if you use our install.sh script, the server will be setup to use the local name server...which pretty much is guaranteed to work for local domains, if Virtualmin is configured correctly. But, if you've opted not to do that, or aren't hosting your own DNS service, then you'll need to correct the problem at the DNS server that is authoritative for the zone.

--

Check out the forum guidelines!

Mon, 02/23/2009 - 06:54 (Reply to #2)
eeeprom

So maybe I am doing somethng wrong.

when logging in I log into webmin

http://www.domain.com:10000

is this correct?

Mon, 02/23/2009 - 07:00 (Reply to #3)
andreychek

You're logging in correctly -- I believe Joe's saying that to do what you're trying to do with the file manager, the images will only display if the paths are absolute.

On the other hand, the "Edit Website" option available in the Pro version handles the various kinds of paths a bit better and might be a better way of doing what you're after if you happen to have Virtualmin Pro.
-Eric

Mon, 02/23/2009 - 07:52 (Reply to #4)
eeeprom

i see, part of the reason for installing webmin and virtualmin was to be able
to see how the editor would work. So at this point I am a little hesitant to
move to the pro.

Thanks Anyway.

Sun, 02/22/2009 - 07:50
eeeprom

Thanks for the quick response. I did install and let it do its own thing.

Where would I look at to double check the Dns?? it is my server, and the website does work as far as the internet goes.

Sun, 02/22/2009 - 08:01
eeeprom

Ok I just did a configuration check. I hope this will help.

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

BIND DNS server is installed, and the system is configured to use it.
Apache is installed.

MySQL is installed and running.

Using network interface eth0 for virtual IPs.

Default IP address for virtual servers is ?.?.?.?. <b>( I removed the IP )</b>

Quotas are not enabled on the filesystem / which contains home directories under /home <b>(This is Not the wher my domain is). </b>and email files under /var/spool/mail. Quota editing has been disabled.

Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access.

All commands needed to create and restore backups are installed.

.. your system is ready for use by Virtualmin.

Sun, 02/22/2009 - 09:22 (Reply to #7)
andreychek

Well, that seems okay.

If you log in over SSH, and type something like:

host google.com

Does it return an IP address to you?
-Eric

Sun, 02/22/2009 - 09:31 (Reply to #8)
eeeprom

yes it does

Sun, 02/22/2009 - 13:57 (Reply to #9)
Joe
Joe's picture

You didn't use install.sh, or it failed to complete successfully. That config check indicates several differences from the way it would be running by default if you used install.sh.

But, it does indicate that the system has localhost in resolv.conf...so my suspicion about the cause of this problem is probably wrong. I guess it isn't DNS. Though I'm having a hard time imagining what else it would be.

--

Check out the forum guidelines!

Sun, 02/22/2009 - 09:40
eeeprom

here is what I am thinking, Somehow the image pathways are not being reported correctly by the editor program. Is there a place where this gets setup?

Sun, 02/22/2009 - 15:31 (Reply to #11)
Joe
Joe's picture

<div class='quote'>Somehow the image pathways are not being reported correctly by the editor program. Is there a place where this gets setup? </div>

You're assuming the editor knows or cares about images. It doesn't. It displays images based on what's in the file. If they are relative, that's what it serves. If they are absolute, that's also what it serves. If the lookup for that hostname fails, it can't get the images to show you.

This is why my first suspicion was that DNS is broken on your system or for your domain. If it isn't, I don't actually know what could cause the symptom you describe.

--

Check out the forum guidelines!

Sun, 02/22/2009 - 16:37
eeeprom

Hmmm Ok, are there any module dependecies that would cause this to fail if they were not running?

and would it help for me to email you login info for you to see what I am talking about?

Sun, 02/22/2009 - 17:10 (Reply to #13)
andreychek

So you're saying you have an HTML file, but the images aren't displaying properly from within the filemanager?

Can you post one of the HTML files that aren't working as an attachment?

Do any images at all work, perhaps for another Virtual Server on your system?
-Eric

Sun, 02/22/2009 - 17:39
eeeprom

hope this helps

Sun, 02/22/2009 - 17:40
eeeprom

trying again

Sun, 02/22/2009 - 17:43
eeeprom

and one more time. I tried using the edit button but it said that I had hit a bug. [img size=600]http://www.virtualmin.com/components/com_fireboard/uploaded/images/gamei...

Sun, 02/22/2009 - 17:49 (Reply to #17)
andreychek

Okay, yeah, I'd love to see the underlying HTML for the file in that screenshot.

Do any files on your system properly display the images?

And yeah, the forum software here sucks, it'll be changed out shortly ;-)
-Eric

Sun, 02/22/2009 - 17:51
Sun, 02/22/2009 - 17:59 (Reply to #19)
andreychek

Yeah, those should work :-)

Again though, do any others on your system work properly -- especially something on another domain/Virtual Server?
-Eric

Sun, 02/22/2009 - 18:01
eeeprom

no,domains work with the editor except in text mode. In html they all do as that one does.

Sun, 02/22/2009 - 18:05 (Reply to #21)
andreychek

Okay.

Just out of curiosity, if you try changing one of the images to be an absolute link rather than relative, does that happen to make a difference?
-Eric

Sun, 02/22/2009 - 23:18 (Reply to #22)
Joe
Joe's picture

I just noticed you said you got to the website editor through the File Manager...the file manager isn't domain aware. So, only absolute links will mean anything to the editor within it--or links that work on whatever the hostname of the system is.

The Edit Web Pages link within Virtualmin Professional <i>is</i> domain-aware, and would work in this circumstance, assuming DNS works.

--

Check out the forum guidelines!