Solved

How can i change the ftp location on my apache intranet site

Posted on 2013-01-17
5
321 Views
Last Modified: 2013-02-04
i have a company website running on a windows 2003 server using apache
we have an ftp option on the site for downloading templates which are held on another server
we need to change the ftp location to a new server
how can i find what file needs changed so that it points at my new ftp server
0
Comment
Question by:dougdog
  • 2
  • 2
5 Comments
 
LVL 21

Expert Comment

by:Julian Matz
ID: 38789991
Hi dougdog,

I don't think it's possible to answer your question without more information. Do you know what the old FTP server address is? Is your Intranet site written in PHP?
0
 
LVL 36

Expert Comment

by:ArneLovius
ID: 38790000
do you mean an actual FTP server, or a web application for transferring the files ?
0
 

Author Comment

by:dougdog
ID: 38792944
it is an intranet site on a local server on our domain
on the site if a user requestes to download say a timesheet it then downloads it from another local server which we have the documents copied to and running winows iis with ftp
yes the site is php
i would guess that somewhere in one of the files there is a reference to the ip address or hostname of the server acting as a ftp server
0
 
LVL 36

Expert Comment

by:ArneLovius
ID: 38794131
Your guess would appear to be logical.

Without knowing how that page is generated, it is not possible to sugegst what you would need to change, however I wouls suggest starting with the source for that page and working backwards.
0
 
LVL 21

Accepted Solution

by:
Julian Matz earned 500 total points
ID: 38794951
If you know what the FTP server's hostname is, you could do a search for it. That should then reveal what file you need to edit. If you don't know the hostname, you could maybe do a search for "ftp", since that string is more than likely used throughout the file. You could also examine the page that handles the downloads - if that file doesn't contain the FTP info, look for include statements, which could look like one of these:

include( 'path/to/config.php' );
require '../includes/config.php';
include_once 'config.php';
require_once( 'config.php' );
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now