You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After spending an afternoon installing pH7Builder, I created below instructions. For this build, I used Debian 11 Bullseye, since I am familiar with Debian, and it has the correct versions of Apache and PHP for pH7Builder.
I Created this after everything was up and running, from memory and scrolling back my terminal commands, so I might have missed something.
Also, I know access rights 777 are not the best practice, and MariaDB needs to be secured as well. If you have any additions on this, please share...
Install Debian 11 “BullsEye”
First, install Debian updates and pH7Builder dependancies:
place this block outside the < VirtualHost > block:
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
.# systemctl apache2 restart
Create MariaDB database:
.# mysql
MariaDB> create database NAME;
MariaDB> grant all privileges on NAME.* TO 'user'@'localhost' identified by 'password';
MariaDB> flush privileges;
MariaDB> quit;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After spending an afternoon installing pH7Builder, I created below instructions. For this build, I used Debian 11 Bullseye, since I am familiar with Debian, and it has the correct versions of Apache and PHP for pH7Builder.
I Created this after everything was up and running, from memory and scrolling back my terminal commands, so I might have missed something.
Also, I know access rights 777 are not the best practice, and MariaDB needs to be secured as well. If you have any additions on this, please share...
Install Debian 11 “BullsEye”
First, install Debian updates and pH7Builder dependancies:
.# apt update && apt upgrade -y
.# apt install apache2 mariadb-server composer gettext ffmpeg -y
.# apt install php php-common php-mysql php-zip php-pd php-dom -y
Enable mod-rewrite:
.# a2enmod rewrite
.# nano /etc/apache2/sites-available/000-default.conf
place this block outside the < VirtualHost > block:
.# systemctl apache2 restart
Create MariaDB database:
.# mysql
MariaDB> create database NAME;
MariaDB> grant all privileges on NAME.* TO 'user'@'localhost' identified by 'password';
MariaDB> flush privileges;
MariaDB> quit;
Copy pH7Builder project files:
.# composer create-project ph7software/ph7builder --prefer-dist /var/www/html
.# cd /var/www/html
.# chmod -R 777 _install/
.# chmod -R 777 _protected
Finish installation using the webbrowser
After the installation is finished, users need acces to the upload folder to upload pictures etc:
.# chmod -R 777 /var/www/html/data/system/modules/user
Beta Was this translation helpful? Give feedback.
All reactions