פורסם: 19/02/2007 - 20:48
נושא ההודעה: Apache22 לא מראה סימני חיים (FreeBSD 6.2)
|
Apache22 לא מראה סימני חיים (FreeBSD 6.2)
פעלתי לפי ההוראות שב- Handbook לגבי Apache.
ההבדלים היחידים הם:
הוספתי ב- /etc/rc.conf את הערך:
קוד: | apache22_enable="YES" |
זאת - כי התקנתי Apache22. באיתחול אני אכן רואה עדות בדיוק לזה.
ה- index.html נמצא ב-
קוד: | musa01_bsd# ls /usr/local/www/apache22/data
apache_pb.gif apache_pb22.gif apache_pb22_ani.gif
apache_pb.png apache_pb22.png index.html
musa01_bsd# |
קובץ ההגדרות של ה Apache שלי הוא ב: קוד: | /usr/local/etc/apache22/httpd.conf |
ובו הגדרתי ש: קוד: | DocumentRoot "/usr/local/www/apache22/data" |
כל השאר - לפי המדריך (ה- Handbook) המצוטט לעיל
אז ... עדיין לא עובד לי...
לא מוצג כלום (כלומר - שגיאה "הדף לא נמצא") בדפדפן - כשאני פונה ל- localhost או למחשב שלי לפי שמו - musa01_bsd
( אה! עוד דבר: זה גם מה שרשמתי ב- קוד: | ServerName musa01_bsd |
)
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 06:09
נושא ההודעה: תוספת:
|
הרצתי, כמובן את : קוד: | /usr/local/sbin/apachectl start |
ולא קרה כלום.
ניסיתי את זה: קוד: | /usr/local/sbin/apachectl restart
httpd not running, trying to start
|
אותה תוצאה ("httpd not running, trying to start") הייתה גם בזה: קוד: | /usr/local/sbin/apachectl graceful
httpd not running, trying to start
|
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 08:00
נושא ההודעה:
|
יש משהו ב-error.log
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 20:54
נושא ההודעה: /var/log/httpd-error.log
|
/var/log/httpd-error.log
לפי ה-
קוד: | /usr/local/etc/apache22/httpd.conf |
ה- ErrorLog מוגדר כך:
קוד: | ErrorLog /var/log/httpd-error.log |
אני מניח שזה מה שהתכוונת. אז הנה השורות האחרונות שלו:
קוד: |
musa01_bsd# tail -f /var/log/httpd-error.log
Configuration Failed
[Mon Feb 19 20:16:09 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 19 20:16:09 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "musa01_bsd.WORKGROUP"
Configuration Failed
[Tue Feb 20 06:03:01 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 20 06:03:02 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "musa01_bsd.WORKGROUP"
Configuration Failed
[Tue Feb 20 06:05:08 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 20 06:05:08 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "musa01_bsd.WORKGROUP"
Configuration Failed
|
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 22:06
נושא ההודעה: Re: /var/log/httpd-error.log
|
meorero : | /var/log/httpd-error.log
לפי ה-
קוד: | /usr/local/etc/apache22/httpd.conf |
ה- ErrorLog מוגדר כך:
קוד: | ErrorLog /var/log/httpd-error.log |
אני מניח שזה מה שהתכוונת. אז הנה השורות האחרונות שלו:
קוד: |
musa01_bsd# tail -f /var/log/httpd-error.log
Configuration Failed
[Mon Feb 19 20:16:09 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 19 20:16:09 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "musa01_bsd.WORKGROUP"
Configuration Failed
[Tue Feb 20 06:03:01 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 20 06:03:02 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "musa01_bsd.WORKGROUP"
Configuration Failed
[Tue Feb 20 06:05:08 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 20 06:05:08 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "musa01_bsd.WORKGROUP"
Configuration Failed
|
|
אני חושב שאתה צריך לקבוע בקובץ ה hosts ש "musa01_bsd" יפנה ל IP הפנימי של המחשב (או לקבוע ב ServerName את localhost)
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 22:35
נושא ההודעה: קובץ hosts ] :?:
|
קובץ hosts
הנה מה ששמתי בו, כבר מזמן, עוד לפני שהתקנתי בכלל את ה- Apache :
קוד: | #
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
127.0.0.1 musa01_bsd musa01_bsd.my.domain
#
|
אני תוהה - ראיתי ב רשימת תפוצה של FreeBSD שזה אולי קשור ל- DNS .
יכול להות?
קוד: | Two suggestions:
1) check that all interfaces apache is supposed to be listening
on exist. For some reason one of mine didn't.
2) make sure your hostname is DNS-resolvable. (Even if this is
not visible to the Internet, it still needs to reaolve.)
|
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 22:42
נושא ההודעה: Re: קובץ hosts ] :?:
|
meorero : |
יכול להות?
קוד: | Two suggestions:
1) check that all interfaces apache is supposed to be listening
on exist. For some reason one of mine didn't.
2) make sure your hostname is DNS-resolvable. (Even if this is
not visible to the Internet, it still needs to reaolve.)
|
| אהה . . . ה- interface ש- APACHE אמור להקשיב לו קיים.
עובדה שאני כרגע גולש וכותב פה הודעה, לא?
אין לי עוד כרטיס רשת במחשב הזה.
אז זה אולי משהו של DNS ?
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 23:22
נושא ההודעה:
|
לפי הכתוב ב-log הוא מחפש את musa01_bsd.WORKGROUP (שלא מופיע ב-hosts).
|
|
חזרה לתוכן הדיון |
פורסם: 20/02/2007 - 23:30
נושא ההודעה:
|
תן כאן את מלוא הקובץ של הקונפיגורציה (ללא החלקים עם ה"#")
ונסה את הפקודה הזו (יכול להיות שאצלך זה שונה, בדביאן זה ככה כי האפאצ'י ניקרא apache2 ברד-הט זה ניקרא httpd)
apache2 -t -e error
וגם את התוצאה שלו תדביק כאן.
לפי מה שניראה עושה רושם שהישתמשת בvirtualhost מבלי שבאמת המחשב מכיר את הhost הזה (פקודת ping לשם של ה host תאמת את זה)
כמו כן, ניראה שאתה מבשל/מערבב שם משהו עם SSL, לא? מה את מכין???
גילי
_________________ *"My software never has bugs. It just develops random features." *
*Best file compression around: "rm -rf /" = 100% compression*
*ASCII stupid question, get a stupid ANSI! *
*Err
|
|
חזרה לתוכן הדיון |
פורסם: 21/02/2007 - 22:31
נושא ההודעה: נפתר - תודה!!
|
Atom-Bomb : | meorero : | /var/log/httpd-error.log |
אני חושב שאתה צריך לקבוע בקובץ ה hosts ש "musa01_bsd" יפנה ל IP הפנימי של המחשב (או לקבוע ב ServerName את localhost) |
זה עובד!
תודה
Apache מודיע: It Works!
הבעיה נפתרה ע:י רישום שם השרת בצורה נכונה ב- /etc/hosts
קוד: |
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
127.0.0.1 musa01_bsd musa01_bsd.WORKGROUP
|
ואז גם בקובץ /usr/local/etc/apache22/httpd.conf
כדלהלן:
|
|
חזרה לתוכן הדיון |
|