Apache error log, Drupal module not showing
So I have been developing Drupal module for a while now to integrate our Java based editor into Drupal. It is fortunate that someone has already written and uploaded integration module for our previous release editor. I can learn from his module.
This is the first time that I develop module for Drupal. And also the first time that I do serious PHP coding.
After some time, my module was ready. I tried it out on local server but the module was not showing. I viewed the source, everything was fine, but why was it not showing? I remember reading somewhere in Drupal manual that you should see Apache error log everytime something goes awry. But I didn't know how to view the log. So I googled and I ended up with the following wise line that will show you the log in real time:
This is the first time that I develop module for Drupal. And also the first time that I do serious PHP coding.
After some time, my module was ready. I tried it out on local server but the module was not showing. I viewed the source, everything was fine, but why was it not showing? I remember reading somewhere in Drupal manual that you should see Apache error log everytime something goes awry. But I didn't know how to view the log. So I googled and I ended up with the following wise line that will show you the log in real time:
tail -f /var/log/apache2/error.logI copied that line and pasted it in the console and, voila! There went the log. It said:
[Fri Jan 22 12:26:57 2010] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/drupal/sites/all/modules/editor/lib/js/, referer: http://127.0.0.1/drupal/node/add/page
How cryptic! So I googled again with the keyword "Directory index forbidden" and I stumbled on the following link on Drupal website. I will try to tinker with my Apache settings now. I will write again tonight to report the result.
0 komentar:
Posting Komentar