Guide for installing Linux servers mod_layout
In this tutorial we will learn how you can install Linux servers mod_mayout running on Apache .
It mod_layout anyway?!:
mod_layout is a supplement that combines Apache servers and allows the addition of content on the top / bottom of the sites located on the server.
Who / what mod_layout fit?:
Plugin mod_layout suitable mainly for storage sites that offer free storage for advertisements on sites. Instead of constantly check whether the storage clients embed the ads, you can solve the problem by install mod_layout and ads will automatically appear on all sites (top / bottom).
Information about the plug on the project:
http://tangent.org/362/mod_layout.html
Requirements:
- Server runs on the Linux operating system.
- Apache server version installed 1.3/2.0/2.2.
Download:
All old Apache version is a modified version of the plugin.
Version 1.3 version 3.4 proper -
Version 2.0, version 4.1 proper -
Appropriate versions 2.2 version 5.1 -
(Of course, all these versions updated for a moment of this writing).
Download the plug zone official site of the project can be found here:
http://tangent.org/362/mod_layout.html
Installation:
Download the plugin package, by using the command wget
wget http://download.tangent.org/mod_layout-Version.tar.gz
במקרה שלי(מכיוון שיש לי Apache בגרסה 2.2), הפקודה תיראה כך:
wget http://download.tangent.org/mod_layout-5.1.tar.gz
לאחר הורדת הקובץ, חלצו את הקובץ:
tar xvfz mod_layout-Version.tar.gz
במקרה שלי(מכיוון שיש לי Apache בגרסה 2.2), הפקודה תיראה כך:
tar xvfz mod_layout-5.1.tar.gz
לאחר חילוץ החבילה, הכנסו לתקיית התוסף:
cd mod_layout-Version
במקרה שלי(מכיוון שיש לי Apache בגרסה 2.2), הפקודה תיראה כך:
cd mod_layout-5.1
עכשיו בכדי להתקין את התוסף, הריצו את הפקודה הבאה:
make install
לאחר ההתקנה, תצטרכו להגדיר בקובץ ההגדרות של האפאצ'י( httpd.conf ) את מיקום הקבצים המכילים את התוכן שיוצג בחלק העליון/התחתון של האתרים.
בכדי לערוך את קובץ ההגדרות, הריצו את הפקודה הבאה:
nano /etc/httpd/conf/httpd.conf
חפשו את השורה הבאה:
DocumentRoot "/var/www/html"
והוסיפו אחריה את הקוד הבא:
<Directory "/home/">
AddOutputFilterByType LAYOUT text/html
LayoutHeader /var/www/ads/ads_header.html
LayoutFooter /var/www/ads/ads_footer.html
</Directory>
עכשיו נסביר מה הגדרנו כאן:
.בתוך המרכאות, מגדרים את התקייה שתושפע מהקו = <Directory "/home/">
LayoutHeader /var/www/ads/ads_header.html = המילה LayoutHeader מציינת שהקובץ שמוגדר יופיע בחלקו העליון של האתרים.
המיקום שמופיע אחרי המילה הוא המיקום של הקובץ המוגדר עם התוכן הרצוי לאותו איזור(עליון).
LayoutFooter /var/www/ads/ads_footer.html = המילה LayoutFooter מציינת שהקובץ שמוגדר יופיע בחלקו העליון של האתרים.
המיקום שמופיע אחרי המילה הוא המיקום של הקובץ המוגדר עם התוכן הרצוי לאותו איזור(תחתון).
לאחר שהוספתם את הקוד, שמרו את הקובץ httpd.conf , על ידי לחיצה על הכפתורים:
ctrl+x
וללחצו על Y בכדי לשמור את הקובץ.
עכשיו מה שנשאר זה לעשות ריסטרט לApache בכדי לעדכן את השינויים:
service httpd restart
בהצלחה!
No related posts.









































