How can I use the Web Terminal on my Prestashop site?

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.

What are the most common PS-Cli commands?

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.

Conclusion

You now know how to :

  • Access the Web Terminal of your LWS hosting and why it is essential for managing your Prestashop site.
  • Use PS-Cli commands to optimise and efficiently administer your Prestashop shop.
  • Cleaning the Prestashopcache and the Smarty cache to improve the performance of your site.
  • Export your MySQL database to ensure a safe and reliable backup of your information.
  • Activate or deactivate debug mode to resolve any problems on your site.
  • Regenerate productthumbnails for optimum presentation in your shop.
  • Generate the .htaccess file and the robots.txt file to secure and improve your site's SEO.
  • Put your site on maintenance to carry out updates without disrupting the user experience.
  • Rebuild theproduct search index so your customers can easily find what they're looking for.

🔧🚀 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 ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

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?


Ask the LWS team and its community a question