No Description
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.
zapashcanon 4fc2f36f70
TLS v1.2 only
7 months ago
scripts clean 9 months ago
www fuckoff linkedin 8 months ago
.gitignore Sitemap bis 1 year ago Upgrade 1 year ago Fix link 1 year ago TLS v1.2 only 7 months ago

Source code of my personal website, it’s written in PHP and based on the Symfony framework.


You need PHP, PostgreSQL, the PostgreSQL module for PHP, the DOM module for PHP and composer. On a Debian system, you can do:

sudo apt install php postgresql php-pgsql php-xml composer

Set-up the website

Here, we use PostgreSQL, you can use another DBMS, but you’ll have to add the corresponding PHP module and to modify the files www/app/config/parameters.yml and www/app/config/config.yml.

Configuring PostgreSQL

You need to choose a username mypguser, a password mypguserpass and a database name mypgdatabase.

# log as the postgres user
sudo su postgres
# launch the psql prompt
# create a user `mypguser` with password `mypguserpass`
CREATE USER mypguser WITH PASSWORD 'mypguserpass';
# create a database `mypgdatabase` with `mypguser` as owner
CREATE DATABASE mypgdatabase OWNER mypguser;

Then, you’ll have to put the values of mypguser, mypguserpass and mypgdatabase in the file www/app/config/parameters.yml:

psql_database_name: mypgdatabase
psql_database_user: mypguser
psql_database_password: mypguserpass

Installing dependencies with composer

From the root of the projet:

cd www
composer install

Updating the database schemas

From the root of the projet:

cd www
php bin/console doctrine:schema:update --force

Testing with the built-in server

From the root of the projet:

cd www
php bin/console server:start

The website will be accessible at the local address given in the output.

To stop the server, from the root of the projet:

cd www
php bin/console server:stop