From 0ef28b35abf576b7b38e8463e4db29f575cc7c7e Mon Sep 17 00:00:00 2001 From: bookcorner Date: Mon, 27 Jul 2026 01:47:52 +0400 Subject: Install Phoenix Cart from Git --- README.md | 9 ------- deploy | 4 +++ etc/httpd.conf | 2 +- files.sh | 10 +++---- .../admin/includes/configure.php | 31 ---------------------- .../PhoenixCart-1.1.0.7/includes/configure.php | 23 ---------------- .../phoenixcart/admin/includes/configure.php | 31 ++++++++++++++++++++++ var/www/htdocs/phoenixcart/includes/configure.php | 23 ++++++++++++++++ 8 files changed, 64 insertions(+), 69 deletions(-) delete mode 100644 var/www/htdocs/PhoenixCart-1.1.0.7/admin/includes/configure.php delete mode 100644 var/www/htdocs/PhoenixCart-1.1.0.7/includes/configure.php create mode 100644 var/www/htdocs/phoenixcart/admin/includes/configure.php create mode 100644 var/www/htdocs/phoenixcart/includes/configure.php diff --git a/README.md b/README.md index ebb2051..c67c9a3 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,3 @@ Shell: /usr/local/libexec/gitolite/gitolite-shell $ doas -u git /bin/sh $ gitolite setup -pk bookcorner.pub ``` - - - -Phoenix Cart ------------- - -Extract https://github.com/CE-PhoenixCart/PhoenixCart/archive/refs/tags/v1.1.0.7.zip -to `/var/www/htdocs` -(SHA256: `5bb59df44cac040a7b5218824da76c12b8ba44f9d56e792ac49cac16a6814a1e`). diff --git a/deploy b/deploy index f17d7c2..eb4a718 100755 --- a/deploy +++ b/deploy @@ -51,6 +51,10 @@ fi . "$REPO/files.sh" if [ "$DRY" != 'YES' ]; then + echo '===' + echo 'Installing Phoenix Cart' + git --git-dir /home/git/repositories/phoenixcart.git archive master | tar -x -f - -C /var/www/htdocs/phoenixcart + echo '===' echo 'Apply packet filter rules' pfctl -f /etc/pf.conf && echo 'OK' || echo 'FAIL' diff --git a/etc/httpd.conf b/etc/httpd.conf index fd03bea..f39c8a7 100644 --- a/etc/httpd.conf +++ b/etc/httpd.conf @@ -16,7 +16,7 @@ server "bookcorner.ge" { include "/etc/httpd/_listen443.conf" include "/etc/httpd/_acme.conf" - root "/htdocs/PhoenixCart-1.1.0.7" + root "/htdocs/phoenixcart" directory index "index.php" location "*.php" { diff --git a/files.sh b/files.sh index 0eb2342..33bcea2 100644 --- a/files.sh +++ b/files.sh @@ -31,8 +31,8 @@ install_dir 0755 root daemon '/var/www/conf' install_file 0644 root wheel '/var/www/conf/cgitrc' install_dir 0755 git git '/var/www/git' install_dir 0755 git git '/var/www/git/repositories' -install_dir 0755 root wheel '/var/www/htdocs/PhoenixCart-1.1.0.7' -install_dir 0755 root wheel '/var/www/htdocs/PhoenixCart-1.1.0.7/includes' -install_dir 0755 root wheel '/var/www/htdocs/PhoenixCart-1.1.0.7/admin/includes' -install_file 0644 root wheel '/var/www/htdocs/PhoenixCart-1.1.0.7/includes/configure.php' -install_file 0644 root wheel '/var/www/htdocs/PhoenixCart-1.1.0.7/admin/includes/configure.php' +install_dir 0755 root wheel '/var/www/htdocs/phoenixcart' +install_dir 0755 root wheel '/var/www/htdocs/phoenixcart/includes' +install_dir 0755 root wheel '/var/www/htdocs/phoenixcart/admin/includes' +install_file 0644 root wheel '/var/www/htdocs/phoenixcart/includes/configure.php' +install_file 0644 root wheel '/var/www/htdocs/phoenixcart/admin/includes/configure.php' diff --git a/var/www/htdocs/PhoenixCart-1.1.0.7/admin/includes/configure.php b/var/www/htdocs/PhoenixCart-1.1.0.7/admin/includes/configure.php deleted file mode 100644 index 76c0e07..0000000 --- a/var/www/htdocs/PhoenixCart-1.1.0.7/admin/includes/configure.php +++ /dev/null @@ -1,31 +0,0 @@ - 0, - 'domain' => 'bookcorner.ge', - 'path' => '/admin', - 'samesite' => 'Lax', - 'secure' => true, - ]; - const DIR_WS_ADMIN = '/admin/'; - - const HTTP_CATALOG_SERVER = 'https://bookcorner.ge'; - const DIR_WS_CATALOG = '/'; - - date_default_timezone_set('Asia/Tbilisi'); - - const DIR_FS_CATALOG = '/htdocs/PhoenixCart-1.1.0.7/'; - - const DIR_FS_DOCUMENT_ROOT = '/htdocs/PhoenixCart-1.1.0.7/'; - const DIR_FS_ADMIN = '/htdocs/PhoenixCart-1.1.0.7/admin/'; - const DIR_FS_BACKUP = DIR_FS_ADMIN . 'backups/'; - -// If you are asked to provide configure.php details, -// before sharing, please remove the data below and -// obfuscate the admin folder and home directory (DIR_FS). - const DB_SERVER = '127.0.0.1'; - const DB_SERVER_USERNAME = 'phoenixcart'; - const DB_SERVER_PASSWORD = 'h8wr8zsmzivqjvlxh5odpex4zah4anar'; - const DB_DATABASE = 'phoenixcart'; diff --git a/var/www/htdocs/PhoenixCart-1.1.0.7/includes/configure.php b/var/www/htdocs/PhoenixCart-1.1.0.7/includes/configure.php deleted file mode 100644 index 781e5b6..0000000 --- a/var/www/htdocs/PhoenixCart-1.1.0.7/includes/configure.php +++ /dev/null @@ -1,23 +0,0 @@ - 0, - 'domain' => 'bookcorner.ge', - 'path' => '/', - 'samesite' => 'Lax', - 'secure' => true, - ]; - const DIR_WS_CATALOG = '/'; - - date_default_timezone_set('Asia/Tbilisi'); - -// If you are asked to provide configure.php details, -// please remove the data below before sharing. - const DIR_FS_CATALOG = '/htdocs/PhoenixCart-1.1.0.7/'; - - const DB_SERVER = '127.0.0.1'; - const DB_SERVER_USERNAME = 'phoenixcart'; - const DB_SERVER_PASSWORD = 'h8wr8zsmzivqjvlxh5odpex4zah4anar'; - const DB_DATABASE = 'phoenixcart'; diff --git a/var/www/htdocs/phoenixcart/admin/includes/configure.php b/var/www/htdocs/phoenixcart/admin/includes/configure.php new file mode 100644 index 0000000..80d145b --- /dev/null +++ b/var/www/htdocs/phoenixcart/admin/includes/configure.php @@ -0,0 +1,31 @@ + 0, + 'domain' => 'bookcorner.ge', + 'path' => '/admin', + 'samesite' => 'Lax', + 'secure' => true, + ]; + const DIR_WS_ADMIN = '/admin/'; + + const HTTP_CATALOG_SERVER = 'https://bookcorner.ge'; + const DIR_WS_CATALOG = '/'; + + date_default_timezone_set('Asia/Tbilisi'); + + const DIR_FS_CATALOG = '/htdocs/phoenixcart/'; + + const DIR_FS_DOCUMENT_ROOT = '/htdocs/phoenixcart/'; + const DIR_FS_ADMIN = '/htdocs/phoenixcart/admin/'; + const DIR_FS_BACKUP = DIR_FS_ADMIN . 'backups/'; + +// If you are asked to provide configure.php details, +// before sharing, please remove the data below and +// obfuscate the admin folder and home directory (DIR_FS). + const DB_SERVER = '127.0.0.1'; + const DB_SERVER_USERNAME = 'phoenixcart'; + const DB_SERVER_PASSWORD = 'h8wr8zsmzivqjvlxh5odpex4zah4anar'; + const DB_DATABASE = 'phoenixcart'; diff --git a/var/www/htdocs/phoenixcart/includes/configure.php b/var/www/htdocs/phoenixcart/includes/configure.php new file mode 100644 index 0000000..32a0408 --- /dev/null +++ b/var/www/htdocs/phoenixcart/includes/configure.php @@ -0,0 +1,23 @@ + 0, + 'domain' => 'bookcorner.ge', + 'path' => '/', + 'samesite' => 'Lax', + 'secure' => true, + ]; + const DIR_WS_CATALOG = '/'; + + date_default_timezone_set('Asia/Tbilisi'); + +// If you are asked to provide configure.php details, +// please remove the data below before sharing. + const DIR_FS_CATALOG = '/htdocs/phoenixcart/'; + + const DB_SERVER = '127.0.0.1'; + const DB_SERVER_USERNAME = 'phoenixcart'; + const DB_SERVER_PASSWORD = 'h8wr8zsmzivqjvlxh5odpex4zah4anar'; + const DB_DATABASE = 'phoenixcart'; -- cgit v1.2.3