Search
 
SCRIPT & CODE EXAMPLE
 

PHP

https://ubuntu.com/tutorials/install-and-configure-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
Php :: php variable constant 
Php :: Basic HTTP Authentication example 
Php :: laravel validation rule 
Php :: php ascii to decimal 
Php :: heredoc 
Php :: php get constant value 
Php :: laravel rules 
Php :: how to execute php in linux 
Php :: run laravel without php artisan serve 
Php :: laravel + join 2 eloquent queries 
Php :: what is actullay work model in laravel 
Php :: deleting a database in phpmyadmin 
Php :: PHP strcoll — Locale based string comparison 
Php :: php javascript dynamic form 
Php :: symfony functional test clear session and cookies 
Php :: seguridad de las api en laravel 
Php :: Deprecated: Implicit conversion from float 
Php :: php call static method from class 
Php :: function placing bet using php 
Php :: membership_registration: city or town 
Php :: remove rank math next prev canonical 
Php :: php Write a program to reverse an array or string 
Php :: post factory faker 
Php :: How to calculate age using query builder in laravel? 
Php :: laravel has many deep 
Php :: Uncaught TypeError: call_user_func(): Argument #1 
Php :: Create mocking dependency in unit test Laravel 
Php :: wcfm filter vendor dashboard widgets 
Php :: logout php mysql 
Php :: WooCommerce quantity field to ajax add to cart button archive page 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =