Abdurahman-Amat Posted January 12, 2022 Share Posted January 12, 2022 (edited) I have a Prestashop 1.7.5.1 running on FreeBSD and now I want to move it to Ubuntu (server) 20.04 LTS with its latest version (i think Prestashop 1.7.8.2). According to this post https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/backup/, one has to backup both the shop files and its database. Via PhpMyAdmin tool I have already backedup / exported the complete database in .sql format. When it comes to the shop files, I did not understand quite well which folder / directory is ment when they said " On Linux-based servers, you... reach your folder and use the ... " . Dose it mean the directory where all of the shop files are stored like /usr/local/www/prestashop (which is somehow equivalent to /va/www/html/prestashop in Ubuntu) ? And how about files inside apache2 folder ? I have already tested the new version of Prestashop 11.7.8.2 on Ubuntu (both Desktop and Server) 20.04 LTS on Localhost 127.0.0.1 . I want to rerun my new shop by applying/importing those saved shop files and database. Any comments would be very appreciated, many thanks! Edited January 13, 2022 by Abdurahman-Amat (see edit history) Link to comment Share on other sites More sharing options...
Abdurahman-Amat Posted February 2, 2022 Author Share Posted February 2, 2022 (edited) Update1: (1) I have backed up the full database via PhpMyAdmin and also copied Prestashop files which were inside the running (old) shop folder. (2). I prepared Ubuntu 20.04 LTS Desktop (beccause I will have GUI and browser) as the host server which runs on HyperV as a VM. (3). I successfully installed Prestashop 1.7.8.2 on this Server with a new database by installation and I configured the apache2 VirtualHost for the default localhost, i.e 127.0.0.1 (4). Both admin as well as the costumer sites are working without any problem. like http://127.0.0.1/ (4). Via MySQL commands after "sudo mysql -u root -p" I have created new database, then I imported the old database SQL file into this newly created database via PhpMyAdim. (5). I modified the old database tables such as PS_SHOP_URL, PS_CONFIGURATION (the entries ps_shop_domain and ps_shop_domain_ssl) on the new database for the localhost 127.0.0.1 . (6). I lunched the admin interface of the fresh installed Prestashop and set it to the maintenance mode and checked it by lunching the site, then stopped the apache2 by "sudo systemctl stop apache2" command. (7). I deleted ../prestashop/cache/smarty/compile and .../prestashop/cache/smarty/cache without touching the idex.php file. (8). Now I tried to use the old database by modifying .../prestashop/app/config/parameters.php, where I changed the corresponding value for the field "database_name" to the newly created and modified database (see step (5) ), which was backed up from the old, in other word from the previous running shop. (9). Then I restarted the apache2 server and tried to relunch the shop at http://127.0.0.1/ , but nothing happened, no error message, just blanck page without any response or any text ... . I even tried to lear the history of the firefox browser, which is installed with the ubuntu desktop. But, nothing changed ... (10). I tried to use the database, which is the one created for the installation of the fresh Prestashop and used as its default database at the Prestashop install user insterface. Thus, I changed the value of the field "database_name" to the database name of database-by-prestashop-installation inside .../prestashop/app/config/parameters.php without touching the idex.php file. (11). Then I restarted the apache2 server and relunched http://127.0.0.1/ . Everything is running normal like at step (4) . (12). My plan was to put all the images from the previous shop ../prestashop/img/p/ at the corresponding folder, If the database connection or recognition is ok. Now I do NOT know what should I try or modify as the possible next step .... I am new in this field but wanna learn this technique. Any kind comments or suggestions would be highly appriciated, thanks ! Edited February 3, 2022 by Abdurahman-Amat (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted February 2, 2022 Share Posted February 2, 2022 thanks for sharing your experience 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now