Simple thumbnail viewer
- Apache 2
- PHP 5.4
$HOME/Sites/mybooks/
|-- Book1
| |-- 000.jpg
| |-- 001.jpg
| `-- 002.jpg
|
|-- Book2
| |-- 000.png
| |-- 001.png
| `-- 002.png
`-- index.phpEnable autoload settings to launchctl:
$ sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plistEnable the php5 module:
$ sudo vim /etc/apache2/httpd.conf
#LoadModule perl_module libexec/apache2/mod_perl.so
LoadModule php5_module libexec/apache2/libphp5.soEnable user directory:
$ sudo vim /private/etc/apache2/users/myname.conf
<Directory "/Users/myname/Sites">
Allow from all
</Directory>Configuration test:
$ sudo apachectl configtestStart the Apache2
$ sudo apachectl restartAccess to http://localhost/~myname/mybooks/
© 2014 Tomohiro TAIRA. This project is licensed under the MIT license. See LICENSE for details.