2740 shaares
Pour faire du sport facilement
a utiliser
a utiliser
Pour se débarrasser des fruit flies
a tester
a tester
Un logiciel de todo multiplatform, a eventuellement investiguer
Pour pouvoir utiliser kriss feed dans le user directory:
Today I wanted to give my users possibility to test their PHP scripts, but without all the fuss with creating virtual hosts for each one of them. My first and obvious choice was userdir – user creates public_html directory in his home dir, puts there files, and those files are accessible via http://servername/~username/ URL. To enable this behavior you only have to enable userdir module (a2enmod userdir), and remember to set correct permissions to the userdir (chmod +x $HOME) and public_html (chmod 755 $HOME/public_html). I did this, and everything was working fine, except PHP scripts – browser wanted to download them instead of displaying proper processed content. It appeared that apache in Debian has by default PHP disabled for userdirs. To enable scripting in this dirctory, open file /etc/apache2/mods-enabled/php5.conf, find that piece of code:
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
and disable it, either by deleting or by commenting it out (precede each line with # sign). You can also change php_admin_value engine setting to On, but if you do that, you will be unable to turn off PHP engine in .htaccess files.
Today I wanted to give my users possibility to test their PHP scripts, but without all the fuss with creating virtual hosts for each one of them. My first and obvious choice was userdir – user creates public_html directory in his home dir, puts there files, and those files are accessible via http://servername/~username/ URL. To enable this behavior you only have to enable userdir module (a2enmod userdir), and remember to set correct permissions to the userdir (chmod +x $HOME) and public_html (chmod 755 $HOME/public_html). I did this, and everything was working fine, except PHP scripts – browser wanted to download them instead of displaying proper processed content. It appeared that apache in Debian has by default PHP disabled for userdirs. To enable scripting in this dirctory, open file /etc/apache2/mods-enabled/php5.conf, find that piece of code:
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
and disable it, either by deleting or by commenting it out (precede each line with # sign). You can also change php_admin_value engine setting to On, but if you do that, you will be unable to turn off PHP engine in .htaccess files.
Pour ne pas ouvrir le lien dans shaarli dans une nouvelle fenetre mais un nouvel onglet
encore un site de meteo
Une emulation de windows 93 dans le navigateur
L'homeopathie, c'est nul !
A mettre en application
Des bienfaits de l'education et des mefaits de l'information de basse qualite
Une critique du capitalisme, construite.
Tout ca m'a l'air plutot vrai
Tout ca m'a l'air plutot vrai
Pour demarrer un windows 10 sans login : "Windows+R", then type "Netplwiz"
utilise sur mes nouveaux jouets
utilise sur mes nouveaux jouets
Alles hop a degager google !
Des modules a installer (tester ?)avec Xposed framework
Une bonne recette de glace a la mangue, testee et approuvee par DW
Des bonnes raisons de ne pas etre sur facebook
Argumenete et tout
Argumenete et tout
Un tutoriel pour sd card corrompue
A tester avant de cofnirmer
A tester avant de cofnirmer
Un tutoriel pour iptables