Table des matières

Installation de l'IDE Codiad

Source: https://github.com/Codiad/Codiad/wiki/Quick-install-on-Ubuntu

Installation

Installer GIT si ce n'est pas encore fait :

apt install git

Installer ces quelques librairies PHP et redémarrer le serveur Apache :

apt install php-zip php-mbstring
systemctl restart apache2

Cloner le dépôt GIT dans un dossier :

cd /var/www
mkdir codiad
git clone https://github.com/Codiad/Codiad /var/www/codiad/

Configuration

Copier le fichier config.example.php vers config.php et modifier comme ci-dessous :

// PATH TO CODIAD
define ("BASE_PATH", "/home/marc/web/codiad");
 
// BASE URL TO CODIAD (without trailing slash)
define ("BASE_URL", "mon.domaine.com/codiad");
 
// THEME : default, modern or clear (look at /themes)
define ("THEME", "default");
 
// ABSOLUTE PATH, this is used as whitelist for absolute path projects
define ("WHITEPATHS", BASE_PATH . ",/home");
 
// SESSIONS (e.g. 7200)
$cookie_lifetime = "0";
 
// TIMEZONE
date_default_timezone_set ("Europe/Brussels");

Modifier le propriétaire pour tout le dossier :

sudo chown www-data:www-data -R /home/marc/web/codiad/

Premier lancement