After the WordPress installation was not 403 Forbidden error, you need to go to the folder with the installed WordPress and change the owner of the folders and files. Now run the following commands by root user: chown www-data:www-data -R * Notice: Where www-data it's your username and group directory, like this chown username:group -R * For all folders inside the WordPress directory, set permissions to 755 find . -type...
In order to install Opencart 3 you must have php 7.3+ installed Also in the php.ini file you need to uncomment the following modules extension=curl.so; extension=gd.so; extension=zip.so; Note: If you don't have them on your system, install them. Replace the numbers 8.3 with your php version apt-get install -y php8.3-curl php8.3-gd php8.3-zip Restart PHP-FPM systemctl restart php8.3-fpm I want my site opencart3.com to...
After installing the NGINX server, NGINX is directed to the folder /usr/share/nginx/html Let's change this path. I want my site example.com to be in a folder var/www/ Сreate a example.com folder mkdir /var/www/example.com Set folder permissions 755 chmod 755 /var/www/example.com 755 ( drwxr-xr-x ) everyone can read this directory, but only the owner can change its contents Create a new file index.php in the folder example.com touch...
Install the packages required to connect the apt repository sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring Now you need to import the official key that apt uses to authenticate packages. Download the key curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \ | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null Check if the correct key was loaded: gpg --dry-run...
Install PHP 8.3 on Debian 12 apt update && apt install -y wget gnupg2 lsb-release wget https://packages.sury.org/php/apt.gpg && apt-key add apt.gpg echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list apt install -y php8.3 After installation check php version php -v Install PHP-FPM and Extensions If you also want to install additional modules, then first...
To disable IBus you need to write in the terminal sudo dpkg-divert --package im-config --rename /usr/bin/ibus-daemon After this you need to reboot your computer To turn it back on IBus you need to write in the terminal sudo dpkg-divert --package im-config --rename --remove /usr/bin/ibus-daemon
If you decide to create an online store, then you must decide on the functionality of the site. Then it will be possible to calculate the cost of the work. If you find it difficult to determine the functionality of the site yourself, please contact us using the Feedback format the bottom of this page, and we will try to help you. Choosing a template Creating an online store is possible using a free or paid template. The...
First, create a shell script fakesendmail.sh in the folder /usr/bin/ touch /usr/bin/fakesendmail.sh Add the following script to this file: #!/bin/sh prefix="/var/www/mail" numPath="/var/www/mail" if [ ! -f $numPath/num ]; then echo "0" > $numPath/num fi num=`cat $numPath/num` num=$(($num + 1)) echo $num > $numPath/num name="$prefix/letter_$num.txt" while read line do echo $line >> $name done /bin/true Set...
If you want to add a category description to the category page, you need to open a file that displays categories in your theme, usually this is a file archive.php or category.php and add this code to it <?php echo category_description(get_the_category()[0]->cat_ID); ?> Also you can use function in file functions.php function cat_description(){ if ( is_category() ){ echo category_description(get_the_category()[0]->cat_ID); } } To...
If you need to show the number of posts or pages on your WordPress site without using a plugin, you can write a simple function and add it to the functions.php Wordpress function simple_post_views( $post_ID ) { global $count_key,$count; $count_key = 'simple_post_views_count'; $count = get_post_meta( $post_ID, $count_key, true ); if ( $count == '' ) { $count = 0; update_post_meta( $post_ID,...