LAMP ﻡﺍﺪﺨﺘﺳﺎﺑ ﺎﻴًﻠﺤﻣ Ubuntu ﻰﻠﻋ WordPress ﺖﻴﺒﺜﺘﺑ ﻢﻗ
- MAMP ﻡﺍﺪﺨﺘﺳﺎﺑ ﺎﻴًﻠﺤﻣ Mac ﻡﺎﻈﻧ ﻰﻠﻋ WordPress ﺖﻴﺒﺜﺗ .1<ﻥﺎﺒﺳ>
- WAMP ﻡﺍﺪﺨﺘﺳﺎﺑ ﺎﻴًﻠﺤﻣ Windows ﻰﻠﻋ WordPress ﺖﻴﺒﺜﺗ .2<ﻥﺎﺒﺳ>
- 3. ﺎﻴًﻟﺎﺣ ﺓءﺍﺮﻘﻟﺍ: ﺖﻴﺒﺜﺘﺑ ﻢﻗ WordPress ﻰﻠﻋ Ubuntu ﻡﺍﺪﺨﺘ
(!ﺔﻴﻗﺮﺘﻠﻟ ﺖﻗﻮﻟﺍ ﻥﺎﺣ ﺪﻘﻓ ،ﻡﺪﻗﺃ ﺍﺭًﺍﺪﺻﺇ ﻡﺪﺨﺘﺴﺗ ﺖﻨﻛ ﺍﺫﺇ) .ﺙﺪﺣﻷﺍ ﺕﺍﺭﺍﺪﺻﻹﺍﻭ LTS 10.0
:ﺯﺎﻬﺠﻟﺍ ﻲﻓ ﻲﻟﺎﺘﻟﺍ ﺮﻣﻷﺍ ﺔﺑﺎﺘﻛ ﻖﻳﺮﻃ ﻦﻋ ﻪﺘﻴﺒﺜﺗ ﻚﻨﻜﻤﻳ ،ﻚﻟﺬﺑ ﻡﺎﻴﻘﻟﺍ ﻡﺪﻋ ﺔﻟﺎﺣ ﻲﻓ .ﻞﻌ
sudo apt-get install nano
.ﺯﺎﻬﺠﻟﺍ ﻰﻠﻋ ﺓﺮﺷﺎﺒﻣ ﺔﻈﻓﺎﺤﻟﺍ ﻯﻮﺘﺤﻣ ﻖﺼﻠﻟ Ctrl+Shift+V ﻡﺍﺪﺨﺘﺳﺍ ﻚﻨﻜﻤﻳ .ﺎﻬﺘﺑﺎﺘﻛ ﻦﻣ ﻻ
ﻚﺑ ﺔﺻﺎﺨﻟﺍ ﺔﺌﻴﺒﻟﺍﻭ ﺞﻣﺍﺮﺒﻟﺍ ﺔﻓﺮﻌﻣ
.strong>P HP>ﻭMySQL>ﻭApache>ﻭ stron
- Apache: ﻡﺍﺪﺨﺘﺳﺍ ﺎﻨﻧﺎﻜﻣﺈﺑ ﻥﺎﻛ .ﻪﻣﺪﺨﺘﺴﻨﺳ ﻱﺬﻟﺍ ﺐﻳﻮﻟﺍ ﻡﺩﺎﺧ ﺞﻣﺎﻧﺮﺑ
- MySQL: ﺎﻨﺑ ﺹﺎﺨﻟﺍ ﺕﺎﻧﺎﻴﺒﻟﺍ ﺓﺪﻋﺎﻗ ﺞﻣﺎﻧﺮﺑ ﻮﻫ ﺍﺬﻫ.
- PHP: ﺎﻬﻠﻴﻐﺸﺗﻭ ﺔﻴﻜﻴﻣﺎﻨﻳﺩ ﺐﻳﻭ ﺕﺎﺤﻔﺻ ءﺎﺸﻧﻹ ﻊﺳﺍﻭ ﻕﺎﻄﻧ ﻰﻠﻋ ﻡﺪﺨﺘﺴﺗُ
:ﺐﺘﻛﺍﻭ ﺔﻴﻓﺮﻄﻟﺍ ﺓﺪﺣﻮﻟﺍ ﺢﺘﻓﺍ ،ﺙﺪﺣﻷﺍ ﺭﺍﺪﺻﻹﺍ ﻰﻟﺇ ﻚﺠﻣﺎﻧﺮﺑ ﺚﻳﺪﺤﺘﻟ .ﺎﻬﺴﻔﻧ ﻲﻫ ﺔﻴﻠﻤﻌﻟﺍ
sudo apt-get update
:ﺞﻣﺎﻧﺮﺒﻟﺍ ﻦﻳﻮﻜﺗﻭ ﺖﻴﺒﺜﺗ
ﻲﺸﺗﺎﺑﺃ .1<ﺔﻳﻮﻗ>
sudo apt-get install apache2
:ﺢﺟﺎﻨﻟﺍ ﺖﻴﺒﺜﺘﻟﺍ ﺔﻳﺎﻬﻧ ﻰﻟﺇ ﺔﻴﻟﺎﺘﻟﺍ ﺮﻄﺳﻷﺍ ﺮﻴﺸﺗ .ﺖﻴﺒﺜﺘﻟﺍ ﺔﻴﻠﻤﻋ ﻙﺮﺗﺍﻭ Y ﻂﻐﺿﺍ
Setting up apache2-mpm-worker (2.2.22-1ubuntu1.2) ... * Starting web server apache2 [ OK ] Setting up apache2 (2.2.22-1ubuntu1.2) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place
ﻝﺇ ﻮﻴﻛ ﺱﺇ ﻱﺎﻣ .2<ﺔﻳﻮﻗ>
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
.MySQL ـﻟ ﺭﺬﺠﻟﺍ ﺭﻭﺮﻣ ﺔﻤﻠﻛ ﻦﻴﻴﻌﺗ ﻚﻨﻣ ﺐﻠﻄﻴُﺳ ،ﺖﻴﺒﺜﺘﻟﺍ ءﺎﻨﺛﺃ
:ﻲﻟﺎﺘﻟﺍ ﺮﻣﻷﺍ ﻡﺍﺪﺨﺘﺳﺎﺑ ﺕﺎﻧﺎﻴﺒﻟﺍ ﺓﺪﻋﺎﻗ ﻞﻴﻌﻔﺗ ﺎﻨﻴﻠﻋ ﺐﺠﻳ ،ﺖﻴﺒﺜﺘﻟﺍ ﻝﺎﻤﺘﻛﺍ ﺩﺮﺠﻤﺑ .ﺎﻨ
sudo mysql_install_db
.ﺎﻨﺑ ﺔﺻﺎﺨﻟﺍ ﺭﻭﺮﻤﻟﺍ ﺔﻤﻠﻛ ﻥﺎﻴﺴﻧ ﺔﻟﺎﺣ ﻲﻓ ﺍﺪًﺟ ﺓﺪﻴﻔﻣ ﺔﻴﻟﺎﺘﻟﺍ ﺕﺎﻣﻮﻠﻌﻤﻟﺍ
sourav@ubuntu:~$ sudo mysql_install_db
[sudo] password for sourav:
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h ubuntu password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/scripts/mysqlbug script!
.MySQL ﺕﺎﻧﺎﻴﺑ ﺓﺪﻋﺎﻗ ﺖﻴﺒﺜﺗ ﺔﻳﺎﻬﻧ ﺍﺬﻫ ﻞﺜﻤﻳ
.3<ﺔﻳﻮﻗ>
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-gd php5-xmlrpc php5-curl
nano. ﺎﻬﻴﻓ ﻡﺪﺨﺘﺴﻨﺳ ﻲﺘﻟﺍ ﻰﻟﻭﻷﺍ ﺓﺮﻤﻟﺍ ﻲﻫ ﻩﺬﻫ .ﺔﻠﺼﻟﺍ ﺕﺍﺫ php ﺱﺮﻬ
sudo nano /etc/apache2/mods-enabled/dir.conf
:ﻲﻟﺎﺘﻟﺍ ﺺﻨﻟﺎﺑ dir.conf ﻒﻠﻣ ﺕﺎﻳﻮﺘﺤﻣ ﻕﻮﻓ ﺔﺑﺎﺘﻜﻟﺎﺑ ﻢﻗ .ﺔﻴﻓﺮﻄﻟﺍ ﺓﺬﻓﺎﻨﻟﺍ ﺲﻔﻧ ﻲﻓ ﻮﻧﺎ
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
.ﻮﻧﺎﻨﻟﺍ ﻦﻣ ﺝﻭﺮﺨﻠﻟ Ctrl+Xﻭ ﻆﻔﺤﻠﻟ Ctrl+O ﻰﻠﻋ ﻂﻐﺿﺍ
:ﺪﻴﺟ ﻞﻜﺸﺑ ﻞﻤﻌﻳ ءﻲﺷ ﻞﻛ ﻥﺃ ﻦﻣ ﺪﻛﺄﺘﻠﻟ ﻱﺭﺎﺒﺘﺧﺍ php ﻒﻠﻣ ءﺎﺸﻧﺈﺑ ﻥﻵﺍ ﻡﻮﻘﻧ
sudo nano /var/www/info.php
:info.php ﻒﻠﻣ ﻯﻮﺘﺤﻣ ﺍﺬﻫ ﻥﻮﻜﻳ ﻥﺃ ﺐﺠﻳ
<?php
<h3 align="center">"Awesomeness has no charge" - Po the Panda</h3>
phpinfo();
?>
:ﻲﻟﺎﺘﻟﺍ ﺮﻣﻷﺍ ﺔﺑﺎﺘﻛ ﻖﻳﺮﻃ ﻦﻋ Apache ﺐﻳﻮﻟﺍ ﻡﺩﺎﺧ ﻞﻴﻐﺸﺗ ﺪﻋﺃ
sudo service apache2 restart
:ﻲﻟﺎﺘﻟﺍ URL ﻥﺍﻮﻨﻋ ﺐﺘﻛﺍﻭ ﻚﺑ ﺹﺎﺨﻟﺍ ﺢﻔﺼﺘﻤﻟﺍ ﺢﺘﻓﺍ
http://localhost/info.php
:ﺍﺬﻫ ﻞﺜﻣ ءﻲﺷ ﻰﻠﻋ ﻞﺼﺤﺗ ﻥﺃ ﺐﺠﻳﻭ
.ﺎﻨﻳﺪﻟ ﻲﻟﻭﻷﺍ ﺩﺍﺪﻋﻹﺍ ﻢﺘﺘﺨﻧ ﺍﺬﻬﺑ
ﺲﻳﺮﺑﺩﺭﻭﻭ ﺩﺍﺪﻋﺇ
ﺖﻴﺒﺜﺘﻟﺍﻭ ﻞﻳﺰﻨﺘﻟﺍ :ﻝﻭﻷﺍ ءﺰﺠﻟﺍ
.ﺔﻄﺤﻤﻟﺍ ﻲﻓ ﺔﻴﻟﺎﺘﻟﺍ ﺮﻣﺍﻭﻷﺍ ﻞﻴﻐﺸﺘﺑ ﻢﻗ
cd /var/www
sudo wget http://wordpress.org/latest.tar.gz
sudo tar -xzvf latest.tar.gz
.http://localhost/wordpress ﺮﺒﻋ WordPress ﺖﻴﺒﺜﺗ ﻰﻟﺇ ﻝﻮﺻﻮﻟﺍ ﻦﻜﻤﻳ .(Apache ﺐﻳﻮﻟﺍ
ﺕﺎﻧﺎﻴﺑ ﺓﺪﻋﺎﻗ ءﺎﺸﻧﺇ .ﻲﻧﺎﺜﻟﺍ ءﺰﺠﻟﺍ MySQL ﺓﺪﻳﺪﺟ
:MySQL ﺔﻄﺤﻣ ﻰﻟﺇ ﻝﻮﺧﺪﻟﺍ ﻞﻴﺠﺴﺘﺑ ﻡﻮﻘﻧ ﺎﻨﻋﺩ .ﻲﻤﻴﻠﻌﺘﻟﺍ ﺎﻨﺠﻣﺎﻧﺮﺑ ﻲﻓ "qwerty" ﻰﻠﻋ ﺭﺬﺠ
mysql -u root -p
".
CREATE DATABASE wpubuntu;
:ﺎﻬﻴﻠﺗ
FLUSH PRIVILEGES;
:ﻝﺎﺧﺩﺈﺑ MySQL ﺔﻄﺤﻣ ﻦﻣ ﺝﺮﺨﻧ ﺍﺮًﻴﺧﺃﻭ
exit
:ﺎﻬﺘﻣﺮﺑ ﺔﻴﻠﻤﻌﻟﺍ ﻰﻠﻋ ﺔﻣﺎﻋ ﺓﺮﻈﻧ ﻲﻠﻳ ﺎﻤﻴﻓﻭ
sourav@ubuntu:/var/www$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 44
Server version: 5.5.29-0ubuntu0.12.04.2 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE DATABASE wpubuntu;
Query OK, 1 row affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
.WordPress ﺔﻄﺳﺍﻮﺑ ﻡﺍﺪﺨﺘﺳﻼﻟ ﺓﺰﻫﺎﺟ ﺓﺪﻳﺪﺟ MySQL ﺕﺎﻧﺎﻴﺑ ﺓﺪﻋﺎﻗ ءﺎﺸﻧﺇ ﻲﻓ ﻥﻵﺍ ﺖﺤﺠﻧ ﺪﻘ
ﻦﻳﻮﻜﺗ .3 ءﺰﺠﻟﺍ WordPress
:ﻚﺤﻔﺼﺘﻣ ﻲﻓ ﻲﻟﺎﺘﻟﺍ URL ﻥﺍﻮﻨﻋ ﺢﺘﻓﺍ
http://localhost/wordpress
:ﺓﺭﻮﺼﻟﺍ ﻩﺬﻫ ﺪﻫﺎﺸﺗ ﻥﺃ ﺐﺠﻳ
:ﻲﻠﻳ ﺎﻤﻛ ﻞﻴﺻﺎﻔﺘﻟﺍ ﻝﺎﺧﺩﺈﺑ ﻢﻗ ﺔﺜﻟﺎﺜﻟﺍ ﺓﻮﻄﺨﻟﺍ ﻲﻓ .ﺔﻴﻟﺎﺘﻟﺍ ﺓﻮﻄﺨﻟﺍ ﻲﻓ ﺃﺪﺒﻨ
Database Name: wpubuntu
User Name: root
Password: qwerty (or whatever password you've used for the root user)
Database Host: localhost
Table Prefix: pxa_
:ﺔﻟﺎﺳﺮﻟﺍ ﻩﺬﻫ ﻰﻠﻋ ﻞﺼﺤﺗ ﻥﺃ ﺽﺮﺘﻔﻤﻟﺍ ﻦﻤﻓ ،ﺢﻴﺤﺻ ﻞﻜﺸﺑ ﺕﺍﻮﻄﺨﻟﺍ ﺖﻌﺒﺗﺍ ﺍﺫﺇ .ﻝﺎ
.ﺚﺤﺒﻟﺍ ﺕﺎﻛﺮﺤﻣ ﺔﻄﺳﺍﻮﺑ ﻲﺒﻳﺮﺠﺘﻟﺍ/ﺖﻧﺮﺘﻧﻹﺎﺑ ﻞﺼﺘﻤﻟﺍ ﺮﻴﻏ ﺎﻨﻌﻗﻮﻣ ﻰﻟﺇ ﻒﺣﺰﻟﺍ ﻢﺘﻳ ﻥﺃ ﺪﻳﺮﻧ
!Ubuntu ﻰﻠﻋ ﺖﻧﺮﺘﻧﻹﺎﺑ ﻝﺎﺼﺗﺍ ﻥﻭﺩ ﻞﻣﺎﻛ ﻞﻜﺸﺑ ﻞﻤﻌﻳ WordPress ﺖﻴﺒﺜﺗ ﻚﻳﺪﻟ ،ﻮﻫ ﺎﻫﻭ