Skip to content

Instantly share code, notes, and snippets.

Avatar

Minha Seong fra3il

View GitHub Profile
@fra3il
fra3il / 1288240920_3.c
Last active Aug 29, 2015
[Blog] Django + MySQL + Mod Python #3
View 1288240920_3.c
while ((bytes_read < len || len == 0) && !(b == APR_BRIGADE_SENTINEL(bb) || APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
...
}
@fra3il
fra3il / 1288240920_2
Last active Aug 29, 2015
[Blog] Django + MySQL + Mod Python #2
View 1288240920_2
./configure –with-apxs=/usr/sbin/apxs –with-python=/usr/bin/python
make
make install
@fra3il
fra3il / 1288240920_1.sh
Last active Aug 29, 2015
[Blog] Django + MySQL + Mod Python #1
View 1288240920_1.sh
$ tar xfz MySQL-python-1.2.1.tar.gz
$ cd MySQL-python-1.2.1
$ # edit site.cfg if necessary
$ python setup.py build
$ sudo python setup.py install # or su first
@fra3il
fra3il / 1288239120.py
Last active Aug 29, 2015
[Blog] Can't find the file 'settings.py' in the directory containing
View 1288239120.py
except ImportError, e:
import sys
sys.stderr.write("'settings.py': %r n" % str(e))
sys.exit(1)
@fra3il
fra3il / 7.bash
Last active Aug 29, 2015
[WP] Can't connect to local MySQL server through socket
View 7.bash
[mysqld]
socket=/tmp/mysql.sock
[client]
socket=/tmp/mysql.sock
@fra3il
fra3il / 1288240380
Last active Aug 29, 2015
[Blog] apachectl
View 1288240380
sudo apachectl restart
apachectl -t
You can’t perform that action at this time.