Click to See Complete Forum and Search --> : Apache Front Page
dammwj
04-02-2003, 07:14 PM
I am a Linux newbie.
I have RedHat 8.0 running on an old PC, everything is working fine with Apache, FTP, and Samba all working great in my network.
My question is about posting web pages to Apache from MS Front Page 2000. I can "publish" webs to my Linux box from Front Page using FTP, but they don't go into the right directory or folder or whatever we call folders in Linux. In fact, I don't know where they go!
BTW, I can directly manipulate the html files in the Apache root directory, but I don't know how to get FTP to point to this same directory. Any suggestions?
I would echo what others have said here about the wonders of Linux. I continue to be blown away by how robust this operating system is on a PC that can barely support Windows 95!
DarkJedi9
04-02-2003, 07:42 PM
If you can manipulate files in the Apache root directory, that means you must know where that directory is, so why don't you just move the Frontpage files there once you've "published" them to your Linux box?
baldguy
04-02-2003, 09:38 PM
what user are you ftping into the apache box as?
dammwj
04-02-2003, 11:47 PM
I'm just using a user name that I set up when I installed Linux. Where would my web files be in that case? Is there a way of pointing ftp at the Apache Root Directory? Could I use the user "Apache", because "chowned" the Apache root to the name Apache?
As far as moving them to the Root Directory to where I've ftp'ed them, as DarkJedi9 suggests, that should work. It's just that I'm not sure where they are! :confused:
DarkJedi9
04-03-2003, 02:09 AM
Originally posted by dammwj
It's just that I'm not sure where they are! :confused:
No prob then. As root run updatedb to make sure your locate index is up to date. Once this is done, you can type locate filename and it will basically do what Windows' "find" feature does. (Locate doesn't need to be run as root, just updatedb).
dammwj
04-03-2003, 10:40 PM
OK DarkJedi9 and baldguy. These suggestions are great. I found the location of the FTP'd files, and successfully CP'd them over to Apache's root directory, and everything seems fine now!
The suggestion on "locate" was very useful.
Still two more questions (easy, I think).
Why doesn't Apache recognize web files with an extension of .htm? I can fix the problem in Front Page by just changing the extension of the files to .html, but it's a little more work.
Is it possible to set up a name in Linux that points ftp'd files directly to my Apache root directory? The solution works fine, but it's still a bit of hassle.
Thanks again for the quick response. :)
nemesiox
04-03-2003, 10:59 PM
Hint: Want to make your life easier? Utilize samba... modify your smb.conf to make the apache root visible on Windows, so when you publish, you don't have to use the ftp, just browse the network..
dammwj
04-03-2003, 11:53 PM
Yep, I tried that, and that worked beautifully. That's what I was looking for.
Many thanks, nemesiox!:cool:
baldguy
04-04-2003, 12:52 AM
I suppose you could add a line
AddType text/html .htm
to your httpd.conf file
I don't think I've ever noticed that before, but I make my web pages in vim anyway