Sedang Disiapkan

Website Move

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 [url removed, login to view] 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 [url removed, login to view] from the old server? You are correct that the issue is with mimetypes on the server.

[url removed, login to view]

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 [url removed, login to view] and was able to access the server:

[url removed, login to view]

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/[url removed, login to view]): failed to open stream: No such file or directory in /var/www/vhosts/[url removed, login to view] 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.

Kemahiran: Linux, PHP, Reka Bentuk Laman Web

Lihat lebih lanjut: php warning variable passed array object, www i force com, www force com, website problems, website errors fix, virtual design website, use case types, use case module, use case include example, use case extension, uptodate com, uptodate, type of use case, top it problems, standard c types, ssh copy directory, php hack code, off by one errors, ncsa, move domain from 1&1, i force com, how to set a bit, how to open website, how to make copy of website, how to make a website using html

Tentang Majikan:
( 2 ulasan ) Cobourg, Canada

ID Projek: #374952

Dianugerahkan kepada:

jeeves82

Please check PM

$50 USD dalam 0 hari
(40 Ulasan)
5.6

2 pekerja bebas membida secara purata $55 untuk pekerjaan ini

FandaR

Hi, i can do it. Thank You

$60 USD dalam 0 hari
(310 Ulasan)
6.9