raghavan2004
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Regarding wp-cliHi thanks for the update, I write the code as below,
I created a directory inside html folder and then created a file wp-install.sh. pasted the below code and my wp-cli is working correctly and got the message successfull. I am trying to generate the username, password for the admin automatically and then the DB username and password is hardcoded. I am trying to create a one step installer, where the entire wordpress is setup including the username password and the db and also installed the plugin as mentioned below.<code>
#!/bin/bash curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar php wp-cli.phar --info chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp wp cli update # Variables # Download and extract WordPress # Get the parent directory of the current working directory # sub_dir=$(dirname "$PWD") # Get the name of the parent directory # parent_dir=$(basename "$sub_dir") wp_domain="$(dirname $PWD)" # read -rp "{WP_DOMAIN}"; wp_title="My WordPress Site" db_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9+*$@#' | fold -w 10 | head -n 1) # DB_USER=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9+*$@#' | fold -w 10 | head -n 1) # DB_PASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9+*$@#' | fold -w 10 | head -n 1) db_user="sammy" db_pass="password" admin_email="[email protected]" DB_HOST="localhost" # WP_DOMAIN="example.com" WP_TITLE="My WordPress Site" wp_admin_user=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9+*$@#' | fold -w 10 | head -n 1) wp_admin_pass=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9+*$@#' | fold -w 10 | head -n 1) DB_COLLATE="utf8mb4_unicode_ci" # Define WordPress site credentials # Download WordPress core files wp core download --locale=en_US # Create wp-config.php file wp config create --dbname=$db_name --dbuser=$db_user --dbpass=$db_pass # Install WordPress wp core install --url=$wp_domain --title="$wp_title" --admin_user=$wp_admin_user --admin_password=$wp_admin_pass --admin_email=$admin_email # Update WordPress permalink structure wp rewrite structure '/%postname%/' # Install default WordPress theme and plugins wp theme install twentysixteen --activate wp plugin install akismet --activate wp plugin install jetpack --activate
</code>Attached the link for the screenshot
https://prnt.sc/foz0qwJiu1BF- This reply was modified 3 years, 2 months ago by raghavan2004.
Forum: Installing WordPress
In reply to: Regarding wp-cliHi Karolinapan,
Thanks for the link.. Will check and getback.
I have a basic doubt. Will this work with bash script in ubuntu shellscriptRegards,
Vijey
Forum: Plugins
In reply to: [Redux Framework] wordpress 2019 theme; redux frameworkThanks a lot, I will change the display version.
Regards,
VijayForum: Plugins
In reply to: [Redux Framework] wordpress 2019 theme; redux frameworkThe below is the version it is showing :
Options panel created using Redux Framework v3.6.15Forum: Plugins
In reply to: [Redux Framework] wordpress 2019 theme; redux frameworkHi,
Thanks for the help I installed the redux version 3.6.15. My version of wordpress is 5.2.4 and i used the 2019 default theme and I am trying to create my own theme with the redux controls.The below was mentioned in the readme.txt
Contributors: dovyp
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MMFMHWUPKHKPW
Tags: admin, admin interface, options, theme options, plugin options, options framework, settings, web fonts, google fonts
Requires at least: 3.5.1
Tested up to: 5.1.1
Stable tag: 3.6.15
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.htmlRegards,
VijayForum: Fixing WordPress
In reply to: wordpress 2019 theme; redux frameworkhi,
Thanks a lot for the guidance. Sorry for posting it in the wrong place.
Regards,
VijayForum: Fixing WordPress
In reply to: unable to see page template in page atributeHi thanks for the reply,
I checked it out and found that i was using 2017 theme twenty seventeen. I didnt find the template in page attributes . but as you gave the link i installed the theme free from Wp
(https://gracethemes.com/demo/business-web/templates/left-sidebar/). It had the template under page attributes. whys is this difference and i also installed to wordpress 4.9.8. Please advice.I will also go through the template creation process and get back to you.
Thanks once again,
Regards,
Vijaey