[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

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

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
dougdog
Asked:
dougdog
  • 2
  • 2
1 Solution
 
Julian MatzCommented:
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
 
ArneLoviusCommented:
do you mean an actual FTP server, or a web application for transferring the files ?
0
 
dougdogAuthor Commented:
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
 
ArneLoviusCommented:
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
 
Julian MatzCommented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now