Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-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
Comment

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress

sudo a2ensite wordpress
Comment

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress

sudo a2dissite 000-default
Comment

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress

<VirtualHost *:80>
    ServerName hostname.example.com
    ... # the rest of the VHost configuration
</VirtualHost>
Comment

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress

sudo service apache2 reload
Comment

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress

sudo -u www-data cp /srv/www/wordpress/wp-config-sample.php /srv/www/wordpress/wp-config.php
Comment

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress

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
Comment

https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress

sudo -u www-data nano /srv/www/wordpress/wp-config.php
Comment

PREVIOUS NEXT
Code Example
Shell :: keep services up 2 
Shell :: linux seq leading zero 
Shell :: remove memcached ubuntu 
Shell :: ls show last item 
Shell :: psql exmaple 
Shell :: How to translate a string to md5 using bash 
Shell :: linux download file from server to local machine 
Shell :: vite dev host 
Shell :: pass bash variable to grep 
Shell :: eval assignment 
Shell :: unity windows build support failed to install arch linux 
Shell :: yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh 93684c35 
Shell :: mark raid drive as faulty linux 
Shell :: debian zbar install 
Shell :: uninstall debian kodi 
Shell :: how to know branch from which add branch 
Shell :: git diff without pagination 
Shell :: install gnuunicorn pip 
Shell :: rem command 
Shell :: increase filesystem space in aix 
Shell :: remove last command from history 
Shell :: c myprintf 
Shell :: GitHub Actions: how to target all branches 
Shell :: how to download github code in terminal 
Shell :: what is ssh key 
Shell :: Before installing tensorflow and Keras, install some of the libraries that are needed. 
Shell :: how to save file in linux 
Shell :: turn off ps4 contorller 
Shell :: create powershell profile 
Shell :: lintcode 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =