تركيب الوردبريس بسهولة 3

تركيب وردبريس عن طريق ال Shell
تكلمنا في التدوينه الأولي “تركيب الوربريس بسهولة” عن تركيب الوردبريس بواسطة لوحة التحكم الخاصة بالإستضافة.
وتكلمنا في التدوينة الثانية “تركيب الوردبريس بسهولة 2” عن تركيب الوردبريس بواسطة الFTP .
واليوم إن شاء الله سوف نتكلم عن تركيب الوردبريس عن طريق إستخدام ال Shell
هذه الطريقة تُستخدم من قبل من لديه معرفة باللينوكس وله صلاحيه على السيرفر الخاص به لذلك فهي موجهه للمتقدمين فقط.
ملحوظة تم شرح هذه الطريقة على سيرفر Debian
Create new database
create database DB_NAME;
grant all privileges on DB_NAME.* to ‘USERNAME’@'SERVERNAME’ identified by ‘PASSWORD’;
exit
To get on last version You must be following these steps
cd /usr/local
wget http://wordpress.org/latest.zip
Extract wordpress folder
unzip latest.zip ” make sure you have unzip package “
Change wordpress folder permissions for the web server user ” In my case my web server user is www-data
chown www-data:www-data /usr/local/wordpress/ -R
Change wp-config-sample.php to wp-config.php
mv wp-config-sample.php wp-config.php
Set up wp-config.php
vim /usr/local/wordpress/wp-config.php
Edit these lines
define(‘DB_NAME’, ‘YourDataBaseName’); // The name of the database
define(‘DB_USER’, ‘UserName’); // Your MySQL username
define(‘DB_PASSWORD’, ‘passwordForDatabase’); // …and password
Add new VirtualHost in apache configration file
vim /etc/apache2/sites-available/default
add this line:
<VirtualHost *>
ServerName YourDomainName.com
ServerAlias www.YourDomainName.com
ServerAdmin user@YourDomainName.com
DocumentRoot /usr/local/wordpress
Options Indexes FollowSymlinks
</VirtualHost>
:wq! to save and exit
Restart apache
apache2ctrl restart
Follow setup page
http://YourDomainName.com/index.php
Finished
1- Create new database:
create database DB_NAME;
grant all privileges on DB_NAME.* to ‘USERNAME’@'SERVERNAME’ identified by ‘PASSWORD’;
exit
2- To get on last version You must be following these steps:
cd /usr/local
wget http://wordpress.org/latest.zip
3- Extract wordpress folder.
unzip latest.zip ” make sure you have unzip package “
4- Change wordpress folder permissions for the web server user ” In my case my web server user is www-data”.
chown www-data:www-data /usr/local/wordpress/ -R
5- Change wp-config-sample.php to wp-config.php.
mv wp-config-sample.php wp-config.php
6- Set up wp-config.php:
vim /usr/local/wordpress/wp-config.php
Edit these lines
define(‘DB_NAME’, ‘YourDataBaseName’); // The name of the database
define(‘DB_USER’, ‘UserName’); // Your MySQL username
define(‘DB_PASSWORD’, ‘passwordForDatabase’); // …and password
7- Add new VirtualHost in apache configration file:
vim /etc/apache2/sites-available/default
add this line:
<VirtualHost *>
ServerName YourDomainName.com
ServerAlias www.YourDomainName.com
ServerAdmin user@YourDomainName.com
DocumentRoot /usr/local/wordpress
Options Indexes FollowSymlinks
</VirtualHost>
:wq! to save and exit
8- Restart apache
apache2ctrl restart
9- Follow setup page:
http://YourDomainName.com/index.php
10- Finished




















شارك بتعليقاتك !