Solved

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

Posted on 2013-01-17
5
326 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 37

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 37

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why is my wamp get_include_path() wrong? 2 21
Split wordpress loop 35 56
Uploading a CSV Data Import via PHP & MySql 3 32
if (is_singular not working 5 18
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

861 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