This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apachectl restart | |
apachectl -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
socket=/tmp/mysql.sock | |
[client] | |
socket=/tmp/mysql.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
except ImportError, e: | |
import sys | |
sys.stderr.write("'settings.py': %r n" % str(e)) | |
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure –with-apxs=/usr/sbin/apxs –with-python=/usr/bin/python | |
make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while ((bytes_read < len || len == 0) && !(b == APR_BRIGADE_SENTINEL(bb) || APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) { | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName IP_ADDRESS | |
DocumentRoot /Users/USER_NAME/Documents/workspace/PROJECT/src/PROJECT | |
<Location "/"> | |
SetHandler python-program | |
PythonHandler django.core.handlers.modpython | |
SetEnv DJANGO_SETTINGS_MODULE PROJECT.settings | |
PythonDebug On | |
PythonPath "['/usr/lib/python2.6','/Users/USER_NAME/Documents/workspace/PROJECT/src'] + sys.path" | |
PythonInterpreter PROJECT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+—————————————————————————–+——————————————————————————————————————————————————————— | |
| Variable_name | Value | |
+—————————————————————————–+——————————————————————————————————————————————————————— | |
| character_set_client | latin1 | |
| character_set_connection | latin1 | |
| character_set_database | latin1 | |
| character_set_filesystem | binary | |
| character_set_results | latin1 | |
| character_set_server | latin1 | |
| character_set_system | utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysql] | |
default-character-set = utf8 | |
[mysqld] | |
character-set-client-handshake = FALSE | |
init_connect = "SET collation_connection = utf8_general_ci" | |
init_connect = "SET NAMES utf8" | |
default-character-set = utf8 | |
character-set-server = utf8 | |
collation-server = utf8_general_ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+—————————————————————————–+——————————————————————————————————————————————————————— | |
| Variable_name | Value | |
+—————————————————————————–+——————————————————————————————————————————————————————— | |
| character_set_client | utf8 | |
| character_set_connection | utf8 | |
| character_set_database | utf8 | |
| character_set_filesystem | binary | |
| character_set_results | utf8 | |
| character_set_server | utf8 | |
| character_set_system | utf8 |
OlderNewer