〇Easy!Appointmentsの画面
1. 以下のコマンドを実行してMariaDBをインストールします。
sudo apt-get update
sudo apt-get -y install mariadb-server
sudo mysql -uroot -e "SET PASSWORD = PASSWORD('root'); FLUSH PRIVILEGES;"
mysql -uroot -proot -e "CREATE DATABASE easyappointments DEFAULT CHARACTER SET utf8mb4;"
mysql -uroot -proot -e "CREATE USER easyappointments@localhost IDENTIFIED BY 'easyappointments';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON easyappointments.* TO 'easyappointments'@'localhost';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
2. Easy!Appointmentsをインストールします。
sudo apt-get -y install apache2 \
php7.4 \
libapache2-mod-php7.4 \
php7.4-mysql \
php7.4-common \
php7.4-xml \
php7.4-zip \
php7.4-mbstring \
php7.4-curl \
unzip
sudo mkdir -p /opt/easyappointments
cd /opt/easyappointments
sudo wget https://github.com/alextselegidis/easyappointments/releases/download/1.3.2/easyappointments_1.3.2.zip
sudo unzip easyappointments_1.3.2.zip
sudo cp config-sample.php config.php
sudo sed -i -e "s#http://url-to-easyappointments-directory#http://`hostname`/easyappointments#" /opt/easyappointments/config.php
sudo sed -i -e "s#DB_HOST.*= '';#DB_HOST = 'localhost';#" /opt/easyappointments/config.php
sudo sed -i -e "s#DB_NAME.*= '';#DB_NAME = 'easyappointments';#" /opt/easyappointments/config.php
sudo sed -i -e "s#DB_USERNAME.*= '';#DB_USERNAME = 'easyappointments';#" /opt/easyappointments/config.php
sudo sed -i -e "s#DB_PASSWORD.*= '';#DB_PASSWORD = 'easyappointments';#" /opt/easyappointments/config.php
sudo sed -i -e "s#LANGUAGE.*= 'english';#LANGUAGE = 'japanese';#" /opt/easyappointments/config.php
sudo chown -R www-data:www-data /opt/easyappointments
sudo ln -s /opt/easyappointments /var/www/html
sudo systemctl restart apache2.service
3. ブラウザからhttp://<ホスト名またはIPアドレス>/easyappointments/ にアクセスします。
管理者情報や会社情報を入力し、「Install Easy!Appointments」ボタンをクリックします。
0 件のコメント:
コメントを投稿