Note: change PHP version numbers to match your requirement. I have used 5.6 and 7.0
Changing php version for Aapche server
sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart
groups | |
sudo groupadd www | |
sudo usermod -a -G www ec2-user | |
sudo usermod -a -G www apache | |
sudo chown -R root:www castle_invoice/ | |
find ./castle_invoice -type d -exec sudo chmod 2775 {} \; | |
find ./castle_invoice -type f -exec sudo chmod 0664 {} \; | |
sudo service httpd restart |
[ | |
{ | |
"action": "talk", | |
"voiceName": "Russell", | |
"text": "Hi Darling.Learn javascript as soon as possible.Love you. Bye" | |
} | |
] |
<?php | |
////////////////////// | |
// Custom Post Type // | |
////////////////////// | |
/* | |
* Creating a function to create our CPT tours | |
*/ | |
<?php | |
/** | |
* Render an exception into an HTTP response. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \Exception $exception | |
* @return \Illuminate\Http\Response | |
*/ | |
public function render($request, Exception $exception) | |
{ |
/* Add this code at the bottom of your theme's function.php or in your plugin code */ | |
/* Remove product meta */ | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH |