The source code for the Standard Ebooks website.

★ 299⑂ 72👁 13⑃ 447● 137▤ 0
PHPCC0-1.0Created 2018-12-29standardebooks.org
+0
日增长
299
stars
72
forks
13
watchers
447
prs
137
issues
0
releases

README

Installation

PHP 8.5.4+ is required.

 Installing on Ubuntu 26.04

shell
 Set up the Manticore APT list.
 As of Ubuntu 26.04, Manticore is still not included as a system package.
wget https://repo.manticoresearch.com/manticore-repo.noarch.deb
sudo dpkg -i manticore-repo.noarch.deb
rm manticore-repo.noarch.deb

 Install Apache, PHP, PHP-FPM, and various other dependencies.
sudo apt update
sudo apt install -y git composer php-fpm php-cli php-gd php-xml php-apcu php-mbstring php-intl php-curl php-zip php-mysql apache2 apache2-utils libfcgi0ldbl task-spooler ipv6calc mariadb-server attr libapache2-mod-xsendfile libimage-exiftool-perl librsvg2-bin task-spooler attr php-mailparse manticore php-imap awscli

 Create the site root and logs root and clone this repo into it.
sudo mkdir /standardebooks.org/
sudo chown $(whoami): /standardebooks.org
sudo mkdir /var/log/local/
cd /standardebooks.org/
git clone https://github.com/standardebooks/web/

 Install dependencies using Composer.
cd /standardebooks.org/web/
composer install

 Install the SE toolset as a library in .venv so we can use it in some scripts.
python3 -m venv .venv
source .venv/bin/activate
pip3 install standardebooks
deactivate

 Add standardebooks.test to your hosts file.
echo -e "127.0.0.1\tstandardebooks.test" | sudo tee -a /etc/hosts

 Create a self-signed SSL certificate for use with the local web site installation.
mkdir -p /standardebooks.org/web/config/ssl/standardebooks.test
openssl req -x509 -nodes -days 99999 -newkey rsa:4096 -subj "/CN=standardebooks.test" -keyout /standardebooks.org/web/config/ssl/standardebooks.test/privkey.pem -sha256 -out /standardebooks.org/web/config/ssl/standardebooks.test/fullchain.pem
sudo mkdir -p /etc/letsencrypt/live
sudo ln -s /standardebooks.org/web/config/ssl/standardebooks.test /etc/letsencrypt/live

 Enable the necessary Apache modules.
sudo a2enmod headers expires ssl rewrite proxy proxy_fcgi xsendfile

 Link and enable the SE Apache configuration file.
sudo ln -s /standardebooks.org/web/config/apache/standardebooks.test.conf /etc/apache2/sites-available/
sudo a2ensite standardebooks.test
sudo systemctl restart apache2.service

 Link and enable the SE PHP-FPM pool.
sudo ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test.ini /etc/php//cli/conf.d/
sudo ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test-secrets.ini /etc/php//cli/conf.d/
sudo ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test.ini /etc/php//fpm/conf.d/
sudo ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test-secrets.ini /etc/php//fpm/conf.d/
sudo ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test.conf /etc/php//fpm/pool.d/
sudo systemctl restart "php-fpm.service"

 Link MariaDB configuration.
sudo ln -s /standardebooks.org/web/config/mariadb/99-se.cnf /etc/mysql/mariadb.conf.d/
sudo systemctl restart mariadb.service

 Create and populate the SE database.
mariadb /vendor/phpstan/phpstan/phpstan analyze --configuratio

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON