A
A
Admin Localhost2014-06-20 15:54:19
PHP
Admin Localhost, 2014-06-20 15:54:19

How to upload php site to hosting?

Hello. Faced a problem.
I need to upload a site to the hosting (1and1.com). The site is written in php, not by me and I have no connection with the developer.

I have zero experience with php, but if you come across some guide, I hope I can figure it out.

If you stupidly upload a folder with a site to the hosting, then when you enter it, you see the following.
https://yadi.sk/d/dzgKiGOhUECXM

From this it is clear that there is some kind of database. I believe it is a dump.sql file, which is the only one in the main folder among a bunch of .php files.

In addition to all this, I was given a login and password from PhpMyAdmin, which, if I understood correctly, was on the previous hosting. On the current hosting, in the MySql Database section, you can create a database, and after creating it, this field appears. https://yadi.sk/d/FWdYEDTuUEKGK
If I understand correctly, the data from the field must somehow be connected to the existing database. How, I don't know :)
Write if you need any more information.

Thanks a lot. I hope for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DuD, 2014-06-20
@FranzOmz

That's right. Copy the files, then create the database and import dump.sql via phpmyadmin.
Then you need to find the database configuration file among the site files. Usually it is called db.php\config.php

A
Arseny, 2014-06-21
@Arseny092

in phpMyAdmin>Export, save the .sql file, then delete the tables and re-upload.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question