Apache on Windows
Ok, I am trying to develop a developer environment with Apache and other software.
I have some basic questions that elude me either by ignorance of this type of environment, or the faqs are focused in other areas throughout Apache and other sites.
Maybe some basic questions someone can spit out for me.
This is a succesful apache installation, with MySQL (With phpmyadmin) PHP CGI etc.
It is running as a service and starts and stops without errors.
First, It might not be the thing to do, but I want to ftp into the server through localhost.
Second, what User and Pass is set by default for the ftp on apache (Notice I said the ftp on apache) I simplified that because I really dont understand how to do what I want to do which is this.
I want to access the apache installation via ftp with dreamweaver and wsftp.
Man there are so many questions that I almost have the answer to but just dont have enough experience with this setup to just do it, which is what I want to do. Damn Nike, cant say that without thinking of their marketing ad.
K
mairving posted this at 13:25 — 3rd September 2001.
They have: 2,256 posts
Joined: Feb 2001
First of all, I am sorry that you chose Windows as your server. Why not put a copy of Linux on there? It's free and easy to setup. Okay, maybe not, but it is free.
Where would you be FTP'ing from? Through a lan network?
I am assuming Windows 2000 but not sure if you are running the Pro or Server version. Apache really has no FTP server capabilties. You will need something like WarFTP or some other program to run your FTP. I am assuming that your username and password would be controlled by Windows. So you would have to have a valid username and password there.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Keegan posted this at 13:33 — 3rd September 2001.
They have: 300 posts
Joined: Aug 2001
Apache is the server running on Windows XP. It is resolving at:
http://localhost/
http://127.0.0.1/
I want to FTP from Wsftp into the htdocs directory. (So I can change permissions) Man I just realized something about that LOL, file system must be different (Been remote connecting too long)
Would be ftping locally, well the reason was so I could change the permissions so cgi and php scripts ran without error, they seem to be erroring because of a lack of permissions.
I dont mind going through and installing some sort of linux dist, but I would need to know where I could get one on the net. (It would need to run in windows)
Thanks for the reply again
MBSHost.com
SigHost Project
mairving posted this at 14:17 — 3rd September 2001.
They have: 2,256 posts
Joined: Feb 2001
Here is what I usually do instead of using localhost:
In your hosts file (in Windows 2000, it is in WINNT\System32\drivers\etc\..., add an entry like this
IP address of local machine xxx.sitename.com.
Example:
192.168.1.1 xxx.keegan.com
In your Apache config file (httpd.conf in Linux) add a VirtualHost Entry like such:
VirtualHost xxx.keegan.com
DocumentRoot C:\...
ErrorLog C:\...
TransferLig C:\\ ..
replacing the ... with your correct path.
In your browser, you can access it by typing in xxx.keegan.com. You really don't have to use the xxx part. I usually do so that I can tell if I am on a local set or an Internet site.
This does several things for you. One it looks a bit better than typing in http:\\localhost. The other is that you can add other entries for other sites by adding another entry in your hosts file and your apache config file. Works pretty well.
As far as getting a version of Linux that would run in Windows, I don't know of any that I could really recommend.
Is there an FTP server that can be run in XP. I don't have a 'test' copy yet so I can't tell you there.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Keegan posted this at 15:30 — 3rd September 2001.
They have: 300 posts
Joined: Aug 2001
Ok, what you just told me is very informative.
The config file I am very familiar with so I will be able to impliment that mode of adding sites locally.
If you have apache rnnning on your network there, can you include files?
Just a normal .shtml include of another html document, such as a footer.
I can't get it to show through a working apace installation.
Addhandler is added for .shtml, the files are in the server root /htdocs (default) yet it still does not work.
In your previoous post you mentioned an ftp server will be needed, I am suprised apache does not have one for it, but then thats the older technology at work, not bad but it is what it is. I wonder if I can find a control panel for a local installation of apache on windows, thats something to look into.
Xp does not seem to have an internal ftp server no. Its windows 2000 with a skin as far as I am concerned. Nothing really smoking my figs here. After a month or so running it, it just seems like a buggy windows 2000.
But then the bugs seem cleaner LOL< I wonder if that makes sense.
Anyway, let me mess with the hosts file deal, look for a control panel for running a virtual host locally on my network, and mess around with running the ftp server for changing permissions here. I doubt that will work and more than likely I am confusing os's but then again, isnt it fun to learn'?
Thanks mairving
K
MBSHost.com
SigHost Project
mairving posted this at 20:06 — 3rd September 2001.
They have: 2,256 posts
Joined: Feb 2001
I know it makes a difference in the Linux world but it should be:
AddHandler not Addhandler.
Apache is not really old technology. Just good solid and secure. It is not a FTP program which is why it doesn't run FTP.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Keegan posted this at 00:35 — 6th September 2001.
They have: 300 posts
Joined: Aug 2001
Ok I found out what was wrong.
I added this line
Options Indexes FollowSymLinks MultiViews Includes
And also this line.
DirectoryIndex index.shtml
Now includes work through localhost!
K
MBSHost.com
SigHost Project
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.