- Обо мне
-
- Стоимость работы:
- цена договорная
- Профессиональный опыт:
- менее года
- Форма собственности:
- Физ. лицо
- Способы оплаты:
- наличный расчёт, безналичный расчёт, электронные деньги
Добрый день хочу помогать людям в создании сайтов, готов рассматривать любые варианты)- Ключевые навыки
-
- #!/bin/bash ################################################################################ # script for installing wordpress on ubuntu 20.04 (other versions could work too) # author: piotr cierkosz #------------------------------------------------------------------------------- # this script will install wordpress on your ubuntu 20.04 server ################################################################################ #------------------------------------------------- # dependencies #-------------------------------------------------- echo -e "\n---- installing dependencies ----" sudo apt update sudo apt install apache2 \ ghostscript \ libapache2-mod-php \ mysql-server \ php \ php-bcmath \ php-curl \ php-imagick \ php-intl \ php-json \ php-mbstring \ php-mysql \ php-xml \ php-zip sudo apt install curl #-------------------------------------------------- # install wordpress #-------------------------------------------------- echo -e "\n---- install wordpress ----" sudo mkdir -p /srv/www sudo chown www-data: /srv/www curl https://wordpress.org/latest.tar.gz | sudo -u www-data tar zx -c /srv/www #-------------------------------------------------- # configure db #-------------------------------------------------- sudo mysql -u root -e "create database wordpress;" sudo mysql -u root -e "create user wordpress@localhost identified by '<your-password>';" sudo mysql -u root -e "grant select
- insert
- update
- delete
- create
- drop
- alter on wordpress.* to wordpress@localhost;" sudo mysql -u root -e "#flush privileges;" sudo mysql -u root -e "quit" sudo service mysql start #-------------------------------------------------- # wordpress db connection #-------------------------------------------------- sudo -u www-data cp /srv/www/wordpress/wp-config-sample.php /srv/www/wordpress/wp-config.php sudo -u www-data sed -i 's/database_name_here/wordpress/' /srv/www/wordpress/wp-config.php sudo -u www-data sed -i 's/username_here/wordpress/' /srv/www/wordpress/wp-config.php sudo -u www-data sed -i 's/password_here/<your-password>/' /srv/www/wordpress/wp-config.php #-------------------------------------------------- # apache #-------------------------------------------------- cat <<eof > ~/wordpress <virtualhost *:80> documentroot /srv/www/wordpress <directory /srv/www/wordpress> options followsymlinks allowoverride limit options fileinfo directoryindex index.php require all granted </directory> <directory /srv/www/wordpress/wp-content> options followsymlinks require all granted </directory> </virtualhost> eof sudo mv ~/wordpress /etc/apache2/sites-available/wordpress.conf sudo a2ensite wordpress sudo a2enmod rewrite sudo a2dissite 000-default sudo service apache2 reload sudo systemctl reload apache2 echo "-----------------------------------------------------------" echo "your wordpress server is up and running. specifications:" echo "port: 80" echo "config: /srv/www/wordpress/wp-config.php" echo "apache config: /etc/apache2/sites-available/wordpress.conf" echo "please remember to replace default password and put your unique phrase in wp-config.php" echo "-----------------------------------------------------------"
- #!/bin/bash ################################################################################ # script for installing wordpress on ubuntu 20.04 (other versions could work too) # author: piotr cierkosz #------------------------------------------------------------------------------- # this script will install wordpress on your ubuntu 20.04 server ################################################################################ #------------------------------------------------- # dependencies #-------------------------------------------------- echo -e "\n---- installing dependencies ----" sudo apt update sudo apt install apache2 \ ghostscript \ libapache2-mod-php \ mysql-server \ php \ php-bcmath \ php-curl \ php-imagick \ php-intl \ php-json \ php-mbstring \ php-mysql \ php-xml \ php-zip sudo apt install curl #-------------------------------------------------- # install wordpress #-------------------------------------------------- echo -e "\n---- install wordpress ----" sudo mkdir -p /srv/www sudo chown www-data: /srv/www curl https://wordpress.org/latest.tar.gz | sudo -u www-data tar zx -c /srv/www #-------------------------------------------------- # configure db #-------------------------------------------------- sudo mysql -u root -e "create database wordpress;" sudo mysql -u root -e "create user wordpress@localhost identified by '<your-password>';" sudo mysql -u root -e "grant select
- insert
- update
- Отзывы
Нет отзывов