Posts

Showing posts from August, 2022

The problem and solution of no prompt for password when installing MySQL in Ubuntu 18.04 or centos 7

 The reason is that MySQL uses socket authentication option by default for the root user. If you want to disable it, you need to change Authentication plugin for the root account from "Socket authentication" to "Native MySQL authentication". mysql -uroot -pPass@1234!

Error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

  removed  root@server2:/var/lib/mysql# rm -rf my.cnf mysql.cnf mysql.conf.d  and var/lib/mysql also apt remove exim4 apt install mysql-server mysql_secure_installation finally uninstall and reinstall mysql. ** sudo apt-get remove mysql-server sudo apt-get remove mysql-client sudo apt-get remove mysql-common sudo apt-get remove phpmyadmin

waiting for free worker

check horizon supervisor

Supervisor Error: %(process_num) must be present within process_name when numprocs > 1

  Problem: As the error description implies, this happens when you set the,  numprocs  to a value greater than 1. e.g. numprocs=4 Solution: Supervisor will start as many instances of this program as named by numprocs so you need to include  %(process_num)  in the value you for  program_name  so that process will have unique names. e.g. process_name = %(program_name)s_%(process_num)02d Now you can restart supervisor

How to Enable exec() in PHP-FPM?

  1) Login to server via SSH. 2) Check the PHP version of the server using the below command. #php -v 3) Then open the PHP-FPM configuration file. # vi /opt/cpanel/ea-php74/root/etc/php-fpm.d/d.ytmp3.su.conf 4) Then you will find the exec() function in the disabled function list. php_admin_value[disable_functions] = passthru,shell_exec,system restart phpfpm /scripts/restartsrv_cpanel_php_fpm /scripts/restartsrv_apache_php_fpm

Install Redis caching engine on cPanel server

  Class 'Redis' not found how does the Redis caching works Most website frameworks like WordPress use the database to cache internal application “objects” which can be expensive to generate (menu trees, filter results, etc.), and to keep cached page content. Since the database also handles many queries for normal page requests, it is the most common bottleneck causing increase load-times. Redis provides an alternative caching back-end, taking that work off the database, which is vital for scaling to a larger number of logged-in users.  This is achieved by storing the query results as memory blocks. Advantage of Redis Caching with Redis will not have the need to manually flush the cache when new content is published.  Additionally if a page or blog post edited, the Redis cache for that content will be invalidated  and will the updated content after the next refresh of page. Installation Procedure The  Redis  daemon and  Redis PHP Extension  is the one we need to install for usin

How To install MP3 Converter Pro

  unzip MP3ConverterPro-v3.*.*.zip && mv mp3converterpro/* mp3converterpro/.??* . && rm -rf mp3converterpro MP3ConverterPro-v3.*.*.zip composer install --no-dev https://d.ytmp3.su/installer Go to  https://SERVER_URL:8090/managephp/editPHPConfigs  choose the desired php version ; This directive allows you to disable certain functions. ; It receives a comma-delimited list of function names. ; http://php.net/disable-functions disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, /home/ytmp3/logs/ d_ytmp3_su.php.error.log How To install FFmpeg and FFprobe 1) Navigate to "bin" folder cd /usr/local/bin 2

google cawl index lakh of pages faster

 https://www.google.com/webmasters/tools/settings

Animation

 If you need to take something back which is not in same layer then drag and shift lawyers up and down and check if you need to make something back and in front which are on same layer than after making them object  then select the object by clicking 2 times > right click ? arrange > send to back or front make joining parts in hand and legs as symbols to select multiple layers in between select the 1st layer and press shift then  select the last one to unselect press shift then unselect

Holding down the left mouse button in AutoHotkey

 F1::     alt := not alt     if (alt)     {         Click down     }     else     {         Click up     } Return

youtube video project moviefree.live wapwon.live

 youtube video project moviefree.live wapwon.live content was not loading only after refresh the page was loading API content so I copied once again with .htaccess and resolved from another domain 500 server error only PHP 7.4 works not working with PHP 8 To crawl  and cache API calls bum.sh #!/bin/bash url=https://video.varickny.com/vd.php?q= while read query do     content=$(curl "{$url}${query}")     echo $query     echo $content >> output.txt done < query.txt query.txt workday-training workday-certification

Shell script using curl to loop through urls

 root@vmi977996:/home/shell/Downloads# cat bum2.sh #!/bin/bash url=https://youtubego.net/vd.php?q= while read query do     content=$(curl "{$url}${query}")     echo $query     echo $content >> output.txt done < query.txt root@vmi977996:/home/shell/Downloads# cat query.txt zebra-abhi tommy-bum

We didn't send the message exim mail

 domain is  suspended in Da EXim

How to enable pcntl in php pcntl_signal pcntl_alarm

  apt-get install php-dev php-cli How to enable pcntl in php PHP  pcntl_signal()  function enabled? yes yes PHP  pcntl_alarm()  function enabled? yes yes