You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

3 years ago
  1. Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.https://getcomposer.org/
  2. You can install ShowDoc by Composer automatically.
  3. - New installation
  4. Change to web directory(e.g:/var/www/html/)and execute:
  5. ```
  6. composer create-project showdoc/showdoc
  7. ```
  8. There will be a folder name "showdoc".Open your browser and visit
  9. http://your-domain.com/showdoc/install/ (change to your servser's address) to initialize ShowDoc.
  10. - Upgrade
  11. Stop apache or nginx , and move showdoc folder to bakup
  12. ```
  13. mv showdoc showdoc_backup
  14. ```
  15. Then flollow the "New installation" guide to install ShowDoc .After that ,move db file and pictures from old folder to new folder.
  16. ```
  17. rm showdoc/Sqlite/showdoc.db.php
  18. cp showdoc_backup/Sqlite/showdoc.db.php showdoc/Sqlite/showdoc.db.php
  19. rm -r showdoc/Public/Uploads/
  20. cp -r showdoc_backup/Public/Uploads/ showdoc/Public/
  21. ```
  22. Open your browser and visit
  23. http://your-domain.com/showdoc/index.php?s=/home/update/db (change to your servser's address) to update db.