Download 1. After getting your hosting, use an FTP program (eg dreamweaver

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Ingres (database) wikipedia , lookup

Database wikipedia , lookup

Concurrency control wikipedia , lookup

SQL wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Relational model wikipedia , lookup

Database model wikipedia , lookup

PL/SQL wikipedia , lookup

Clusterpoint wikipedia , lookup

ContactPoint wikipedia , lookup

Transcript
1. After getting your hosting, use an FTP program (eg dreamweaver or other) to upload the contents of your prestashop folder into the root directory. On the localhost, my files were kept in a
folder inside htdocs directory. Perhaps you have a different configuration.
2. Export the SQL database using phpmyadmin from the localhost. You can find phpmyadmin from the MAMP or WAMP welcome screen. You would have used this to create your
prestashop database when you installed it.
The settings I used were:
In phpmyadmin
Under Export, use select all, and click on SQL
Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT
Add IF NOT EXISTS
Add AUTO_INCREMENT value
Enclose table and field names with backquotes
check these options under the structure.
In the field provided, type a filename for your export, click on gzipped option in and click GO at bottom right of screen.
It should land in the downloads folder. Go and locate this file.
3. On your webhosting control panel, go and find the section where they allow you to create a SQL database.
On my hosting it was “Add SQL database” – part of the cPanel.
Create the new database and select all privileges.
Ensure you select a good database name, with a strong password. You wont be needing to access this often so it doesnt have to be memorable.
VERY IMPORTANT: Make sure you write all the settings down! Preferably COPY/PASTE into a dedicated document.
Then, choose the phpmyadmin part from the cPanel.
Choose the database you just created, and click on the import tab.
Locate the file you just exported (above) from your local hard drive.
make sure “utf8” is selected.
format should be SQL, click “GO”
4. On your webserver, navigate to config/settings.inc.php file and edit the settings to line up with the new database details.
define('__PS_BASE_URI__', '/<your folder name on the web server>/');
define('_THEME_NAME_', '<the mame of your theme>');
define('_DB_NAME_', '<the name of your database>');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', '<the name of the user you specified when creating your web based SQL database>');
define('_DB_PREFIX_', 'ps_');
define('_DB_PASSWD_', '<the password of the user you specified when creating your web based SQL database>');
define('_DB_TYPE_', 'MySQL');
define('_COOKIE_KEY_', '<the same cookie key that was in the local host version of this file>');
define('_COOKIE_IV_', '<the same cookie key that was in the local host version of this file>');
define('_PS_VERSION_', '1.3.6.0');
The things to change are in between < >.
5. You then need to change the .htaccess file in the root folder that was generated on your localhost.
The best way is to copy the contents of the file.
Then go to your backend (on the web) – you should be able to login my now.
Under tools, generators. Generate a new .htaccess.
Edit the new(web) one and compare it with the localhost version. Add any additions that the localhost version had. Some modules require you to paste some code into it.
You should have your shop up and running after this.
Please let me know if I have made any errors / anything to contribute.
Note, I have little experience with these things so probably unable to help answer questions, but post them here anyway and hopefully one of the contributors will be able to help out.
6. Finally, my database localhost when imported to my server database contained configuration settings that redirected the front-end to localhost.
I fixed this by using phpmyadmin on my server, finding my prestashop database, navigating to the ps_configuration table, found the following:
155 PS_SHOP_DOMAIN localhost
156 PS_SHOP_DOMAIN_SSL localhost
and changed to:
155 PS_SHOP_DOMAIN http://www.mydomain.com
156 PS_SHOP_DOMAIN_SSL http://www.mydomain.com