Project Detail

Website Move  

Website Move is project number 374952
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: jeeves82

Budget: $30-250

Created: 01/23/2009 at 12:39 EST

Bid Count: 2

Average Bid:
$ 55

01/24/2009 at 12:39 EST

Project Creator: kvdman
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (2 reviews)

Bid On This Project
 

Description

I've moved a website from one server to another. The old server is a dedicated server with a website and database that is 10 years old, running an uptodate version of Debian. There's no control panel, everything done via ssh. It's a highly customized website and server, you have to know your ins and outs of Apache, MySQL, Debian, etc.

Please study this before bidding!

The new server is a VPS running CentOS with Plesk.

You will compare both servers and fix the website at the new server so that it works correctly.

The database and html files have all been moved to the new server...

The problems may be that

a) the database isn't connected properly.
b) the old server had html files that had no extensions htm, or html. the new server can't recognize these, and in the browser it displays just the sources. the mimetypes are messed...
c) there's some php errors... it's referencing xxx.org instead of xxx.com. make a symlink to fix?

The resolution is to have the website function on the new server, just the way it did on the old server.

I contacted the support team at the new VPS, and they gave some hints, but wouldn't fix it. I'll paste the output here:

----------------------------------------------------------------------

First off are you able to copy over your old httpd.conf from the old server? You are correct that the issue is with mimetypes on the server.

http://httpd.apache.org/docs/1.3/mod/mod_mime.html#addtype

AddType directive
Syntax: AddType MIME-type extension [extension] ...
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_mime

The AddType directive maps the given filename extensions onto the specified content type. MIME-type is the MIME type to use for filenames containing extension. This mapping is added to any already in force, overriding any mappings that already exist for the same extension. This directive can be used to add mappings not listed in the MIME types file (see the TypesConfig directive). Example:

AddType image/gif .gif

It is recommended that new MIME types be added using the AddType directive rather than changing the TypesConfig file.

Note that, unlike the NCSA httpd, this directive cannot be used to set the type of particular files.

The extension argument is case-insensitive, and can be specified with or without a leading dot.



The mimetype tells apache how to process a file. I am a bit concerned on attempting to do this



AddType php .*



This would hopefully make ANY file processed by apache to be translated to be a php file. I am a bit concerned about this command as , theoretically, a .gif file would be processed as a php file.



Do note that if you add the .php extensions the files will work. I copied the hack file to be hack.php and was able to access the server:

http://www.xxx.com/hack.

However, the php files will not work. This is due to files not existing:

-bash-3.00# php legal
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/include): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 4
PHP Warning: main(): Failed opening '/var/www/vhosts/xxxg/httpdocs/code/include' for inclusion (include_path='.:') in /var/www/vhosts/xxx/httpdocs/code/standard on line 4
PHP Warning: file(/var/www/vhosts/xxx.org/httpdocs/theme/settings): failed to open stream: No such file or directory in /var/www/vhosts/xxx.com/httpdocs/code/standard on line 8
PHP Warning: Variable passed to each() is not an array or object in /var/www/vhosts/xxx/httpdocs/code/standard on line 9
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/queries): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 19
PHP Warning: main(): Failed opening '/var/www/vhosts/xxx/httpdocs/code/queries' for inclusion (include_path='.:') in /var/www/vhosts/xxx/httpdocs/code/standard on line 19
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/interface/ad): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 20
PHP Warning: main(): Failed opening '/var/www/vhosts/xxx/httpdocs/code/interface/ad' for inclusion (include_path='.:') in /var/www/vhosts/xxx/httpdocs/code/standard on line 20
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/interface/top): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 21
PHP Warning: main(): Failed opening '/var/www/vhosts/xxx/httpdocs/code/interface/top' for inclusion (include_path='.:') in /var/www/vhosts/xxx/httpdocs/code/standard on line 21
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/interface/left): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 22
PHP Warning: main(): Failed opening '/var/www/vhosts/xxx/httpdocs/code/interface/left' for inclusion (include_path='.:') in /var/www/vhosts/xxx/httpdocs/code/standard on line 22
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/interface/main): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 23
PHP Warning: main(): Failed opening '/var/www/vhosts/xxx/httpdocs/code/interface/main' for inclusion (include_path='.:') in /var/www/vhosts/xxx/httpdocs/code/standard on line 23
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/interface/right): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 24
PHP Warning: main(): Failed opening '/var/www/vhosts/xxx/httpdocs/code/interface/right' for inclusion (include_path='.:') in /var/www/vhosts/xxx/httpdocs/code/standard on line 24
PHP Warning: main(/var/www/vhosts/xxx/httpdocs/code/interface/bottom): failed to open stream: No such file or directory in /var/www/vhosts/xxx/httpdocs/code/standard on line 25
Content-type: text/html
X-Powered-By: PHP/4.3.9

Things to note would also be the .htaccess file on the webdocument root for the domain on the old server.

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

60

0 days

01-23-2009 13:06 EST

Hi, i can do it. Thank You

help

 

50

0 days

01-23-2009 12:48 EST

Please check PM

help


    Bid on this Project