أعجوبة

البرمجيات الحُرة والمفتوحة المصدر

أدوات المستخدم

أدوات الموقع


maqola:setup

اختلافات

عرض الاختلافات بين النسخة المختارة و النسخة الحالية من الصفحة.

رابط إلى هذه المقارنة

جانبي المراجعة السابقةالمراجعة السابقة
maqola:setup [2010/11/25 17:39] mohammed.tillawymaqola:setup [2015/04/23 03:21] (حالي) – تحرير خارجي 127.0.0.1
سطر 1: سطر 1:
 +هل تود المساهمة في مقولة؟
 +
 +هل تود المشاركة في تطوير مقولة؟
 +
 +إذن ها هي بعض النصائح لتنصيب مقولة على جهازك:
 +
 +=== على نظام أبل ماك أو إس Mac OS===
 +
 +ستحتاج لتنصيب [[http://www.macports.org/install.php|MacPorts ]]
 +
 +  * قم بتوليد مفتاح ssh بإستخدام الخطوات التالية:
 +
 +<code>
 +cd ~/.ssh
 +ssh-keygen -t dsa -f ~/.ssh/maqolah_id_idsa
 +</code>
 +
 +  * قم بمراسلة [[http://maqola.org/site/contact |إدارة موقع]] مقولة للتنسيق، و ابعث لهم الملف المسمى : **maqolah_id_idsa.pub**
 +
 +  * بعد أن ترد عليك إدارة الموقع بالإيجاب بإستطاعتك التأكد من نجاح التسجيل من خلال:
 +
 +<code>
 +ssh -i ~/.ssh/maqolah_id_idsa  gitolite@git.freesoft.jo
 +ssh-add ~/.ssh/maqolah_id_idsa
 +</code>
 +
 +  * قم بتنزيل بعض البرامج اللازمة لتنزيل نصوص مقولة و تشغيل مقولة
 +
 +<code>
 +sudo port install postgresql90 php5-memcache php5-postgresql  php5-gd
 + php5-mbstring  git-core 
 +</code>
 +
 +  * قم بتنزيل نصوص مقولة:
 +
 +<code>
 +cd ~/Sites/
 +git clone gitolite@git.freesoft.jo:maqola.git
 +</code>
 +
 +قم بإعداد قاعدة البيانات:
 +
 +<code>
 +mkdir ~/Sites/PostGresDBs/
 +initdb -D ~/Sites/PostGresDBs/
 +pg_ctl -D ~/Sites/PostGresDBs -l logfile start
 +createdb maqola
 +createuser postgres -s
 +createuser maqola -S -R -D
 +
 +psql -h localhost -U maqola   maqola  < ~/Sites/maqola/docs/maqola.dump.sql
 +</code>
 +
 +  * إفتح بعض المجلدات المطلوبة
 +<code> 
 +mkdir ~/Sites/maqola/webapp/protected/runtime
 +mkdir ~/Sites/maqola/webapp/assets
 +sudo chown _www ~/Sites/maqola/webapp/protected/runtime ~/Sites/maqola/webapp/assets
 +</code>
 +
 +  * فعّل php معapache  
 + 
 +<code>
 +
 + sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
 +
 +sudo cat >> /opt/local/apache2/conf/httpd.conf << EOF
 +Include conf/extra/mod_php.conf
 +Include conf/extra/httpd-maqola.conf
 +EOF
 +
 +sudo cat > /opt/local/apache2/conf/extra/httpd-maqola.conf << EOF
 +UserDir Sites
 +DocumentRoot /Users/mohammed/Sites
 +<Directory "/Users/mohammed/Sites">
 +    AllowOverride All
 +    DirectoryIndex index.php index.html
 +    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
 +    <Limit GET POST OPTIONS>
 +        Order allow,deny
 +        Allow from all
 +    </Limit>
 +    <LimitExcept GET POST OPTIONS>
 +        Order deny,allow
 +        Deny from all
 +    </LimitExcept>
 +</Directory>
 +
 +EOF
 +
 +</code>
 +
 +  * بعض التعديلات على إعدادات php
 +<code>
 +sudo ex /opt/local/etc/php5/php.ini << EOF
 +:%s/^short_open_tag = Off/short_open_tag = On/g
 +:wq
 +EOF
 +</code>
 +
 +  * قم بتشغيل memcached و apache
 +<code>
 +memcached -d
 +sudo apachectl restart
 +</code>
 +
 +  * قم بفحص الموقع و لا تنسى بإستبدال كلمة mohammed بإسم مستخدمك
 +<code>
 +http://127.0.0.1/~mohammed/maqola/webapp/site/index?tag=13
 +</code>
 +
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki