Archives

Entries tagged 'installation'

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:

  1. Server runs on the Linux operating system.
  2. 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

 

בהצלחה!

קטגוריות: לינוקס תגיות: , , , , ,

התקנת PHPMyAdmin בCentOS

26 מרץ, 2009 אין תגובות

במדריך זה נלמד איך ניתן להתקין PHP My Admin על בשרת בלינוקס CentOS.

דרישות:

  1. גישת Root
  2. PHP מותקן בשרת
  3. MySQL מותקן בשרת
  4. תמיכה בGD2(של PHP)
  5. תמיכה בהעלאת קבצי ZIP(של PHP)

הכנסו לחלון הקונסולה והקלידו:

- su
cd /var/www/html
wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-Version-all-languages.tar.gz#!md5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
tar xvfz phpMyAdmin-Version-all-languages.tar.gz
mv phpMyAdmin-Version-all-languages phpmyadmin

Version = גרסאת PHP My Admin

לשם הדגמה, זוהי הורדה של PHP My Admin בגרסתה החדשה ביותר(בעת כתיבת שורות אלו – עודכן 17/06/2009):

wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-3.2.0.1.1-all-languages.tar.gz#!md5!44c0070a6d18a9d2e19b88e5f028672e
tar xvfz phpMyAdmin-3.2.0.1-all-languages.tar.gz
mv phpMyAdmin-3.2.0.1-all-languages phpmyadmin
cd phpmyadmin
cp config.sample.inc.php config.inc.php
nano config.inc.php
:
$cfg['Servers'][$i]['auth_type'] = ‘http‘; # הברירת מחדל זה עוגייה
:
service httpd restart

עכשיו אתם יכולים להכנס לPHP My Admin דרך הכתובת:

http://www. domain.co.il /phpmyadmin/

domain.co.il = שם המתחם שלכם והסיומת שלו.

ובחלון הפופ-אפ שייפתח – הכניסו את פרטי המשתמש שלכם.

בהצלחה!

קטגוריות: לינוקס תגיות: , ,