Rate this article :
This article was useful to you ?
Yes
No
Vous avez noté 0 étoile(s)
Procédure
The Web Terminal available on your LWS panel account allows you to perform several actions on the command line. These command lines allow you to interact with your hosting and can, in some cases, help you manage your hosting.
In this documentation, we'll look at how you can use the web terminal to interact with your Prestashop site.
Prior to this documentation, we invite you to access your hosting's web terminal.
Empty the Prestashop cache
php74 /usr/local/bin/ps-cli cache:clean
This command cleans your Prestashop site's cache.
Empty the Prestashop Smarty cache
php74 /usr/local/bin/ps-cli cache:smarty:clean
This command is used to clean the Smarty cache on your Prestashop site.
Export the MySQL database
php74 /usr/local/bin/ps-cli db:export
This command will export the current Prestashop database to your hosting space using the mysqldump shell command. Very useful for recovering a data backup with guaranteed reliability.
Activate or deactivate the debugging mode for your site
php74 /usr/local/bin/ps-cli dev:mode (or false to disable)
This command enables the debugging mode of your WordPress site if you encounter a problem with your site.
Regenerate product thumbnails
php74 /usr/local/bin/ps-cli images:generate:products
This command regenerates the additional image sizes for all your products.
Generate the .htaccess file
php74 /usr/local/bin/ps-cli parameters:generate:htaccess
This command generates the .htaccess file for your site, which is essential for it to function properly.
Generate the robot.txt file
php74 /usr/local/bin/ps-cli parameters:generate:robots
This command is used to generate the robot.txt file, which is used to indicate various specifications to the search engine robots that visit your site to improve its referencing.
Putting your shop into maintenance
php74 /usr/local/bin/ps-cli preferences:maintenance enable (or disable to deactivate it)
This command allows you to put your shop into maintenance so that you can work on it and update it without visitors visiting.
Rebuild your site's product index
php74 /usr/local/bin/ps-cli preferences:search:index rebuild
This command rebuilds the Prestashop product search index. Very useful if you have added or deleted products.
You now know how to :
🔧🚀 With these valuable commands, you have the power to manage your Prestashop shop with greater efficiency and autonomy, while ensuring a smooth and enjoyable user experience. Thank you for following us through this technical guide. If you have any questions or would like to share your experience with LWS Web Terminal, please feel free to leave a comment below. We value your feedback!
Rate this article :
This article was useful to you ?
Yes
No
1mn reading
How do I connect to the Web Terminal with LWS Panel? (ssh web console)
4mn reading
How can I use GIT with the Web terminal on my LWS shared hosting?
2mn reading
How to change the PHP version of the LWS Panel Web Terminal
0mn reading
What can I do on my WordPress site using the Web Terminal?