How to solve the 500 Internal Server Error on phpMyAdmin.
Yesterday I freshly installed my LAMP box, with mod_python. Everything was fine, but this morning while started to use phpMyAdmin, it generated the "500 Internal Server Error on phpMyAdmin", states the server is overloaded, blah blah blah.
My solution was to remove the ".htaccess" files under the phpMyAdmin directory.
To solve the remote login problem of MySQL.
Today, I cannot login to the MySQL server from remote computer, it said something like "cannot connect to remote host". The reason was the "skip-networking" was set to ON in the /etc/my.cnf file.
Comment the line to "#skip-networking" and restart the mysqld will solve the problem.
Sunday, May 27, 2007
How to setup Django with Apache.
1. Ensure Apache / Mod_python is working by following the link below:
http://www.djangoproject.com/documentation/modpython/
2. Install djano
3. Config apache:
Suppose, the document root is "/home/httpd/html", the Django site is in "/home/httpd/html/django",
add the following section into apache's config file (for arch linux: /etc/httpd/conf/httpd.conf)
SetHandler python-program
PythonPath "['/home/httpd/html/'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE django.settings
PythonDebug On
4. Finally, restart apache (/etc/rc.d/httpd restart)
5. check if it is working by visiting localhost/django
"It Worked" will show up if it is successful.
1. Ensure Apache / Mod_python is working by following the link below:
http://www.djangoproject.com/documentation/modpython/
2. Install djano
3. Config apache:
Suppose, the document root is "/home/httpd/html", the Django site is in "/home/httpd/html/django",
add the following section into apache's config file (for arch linux: /etc/httpd/conf/httpd.conf)
SetHandler python-program
PythonPath "['/home/httpd/html/'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE django.settings
PythonDebug On
4. Finally, restart apache (/etc/rc.d/httpd restart)
5. check if it is working by visiting localhost/django
"It Worked" will show up if it is successful.
Subscribe to:
Posts (Atom)