Posts

Showing posts from February, 2025

nagios with php-fpm

/etc/httpd/conf vi httpd.conf IncludeOptional conf.d/*.conf [root@sm56 conf.d]# cat nagios.conf [root@sm56 conf.d]# cat nagios.conf # SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER # # This file contains examples of entries that need # to be incorporated into your Apache web server # configuration file.  Customize the paths, etc. as # needed to fit your system. ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" <Directory "/usr/local/nagios/sbin"> <FilesMatch "\.(inc|php|phtml|phps)$">                         <IfVersion = /^2.4.6[012]$/>                                 ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "%{unescape:%{SCRIPT_FILENAME}}"                         </IfVersion>                         A...

roundcube webmail

 [Fri Feb 28 17:48:23.846025 2025] [proxy_fcgi:error] [pid 500474:tid 500676] [remote 59.144.167.12:57129] AH01071: Got error 'PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/drushtiin/domains/drushti.in/public_html/webmail/functions/strings.php on line 557', referer: https://webmail.drushti.in/roundcube/ [root@sm56 html]# ll total 1068 -rw-r--r--.  1 root root      47 Feb 22 05:15 index.html -rw-r--r--   1 root root 1075759 Feb 26 13:40 named.txt lrwxrwxrwx.  1 root root      21 Feb 22 05:21 phpMyAdmin -> phpMyAdmin-5.2.2-oCp8 drwxr-xr-x. 14 root root    4096 Feb 26 19:31 phpMyAdmin-5.2.2-oCp8 -rwxr-xr-x.  1 root root      68 Feb 22 05:13 redirect.php lrwxrwxrwx   1 root root      19 Feb 27 19:15 roundcube -> roundcubemail-1.6.9 drwxrwxr-x. 13 root root    4096 Feb 27 19:15 roundcubemail...

php was not working

 chmod 755 /home/* permission issue php code was displaying instead of interpreting 

Internal Error - Failed to load databases list

  hi  @Abdhesh , when you receive internal server error, DA will log real error into the error log. You can check it with SSH access using commands: Last 200 log entries: Code: journalctl -u directadmin -n 200 Live log watching (use Ctrl+C to terminate): Code: journalctl -u directadmin -f mysql_upgrade -u da_admin -p --force this fixxxed the issue

ERROR 1050 (42S01) at line 59733: Table 'user' already exists

 MariaDB [mysql]> DROP TABLE IF EXISTS `mysql`.`global_priv`; Query OK, 0 rows affected (0.002 sec) MariaDB [mysql]> DROP VIEW IF EXISTS `mysql`.`user`; Query OK, 0 rows affected (0.001 sec) [root@sm56 src]# mysql -u da_admin -p --force < all-databases-20250225.sql Enter password: [root@sm56 src]#

chroot failed

 [mnt]         path = /mnt/         comment = An Example         auth users = root         secrets file = /etc/rsyncd.secrets         read only = no         uid = root         gid = root         use chroot = yes chroot like this won't work [mnt]         path = /mnt/data         comment = An Example         auth users = root         secrets file = /etc/rsyncd.secrets         read only = no         uid = root         gid = root         use chroot = yes path should be single directory or path not  subfolder

globaltrendz

 hetiacp  nginx and php-fpm  systemctl restart php8.2-fpm mkdir -p /run/php/ systemctl status php8.2-fpm root@server4:/var/log# cd php8.2-fpm.log php8.2-fpm.log       php8.2-fpm.log.1     php8.2-fpm.log.2.gz  php8.2-fpm.log.3.gz /usr/local/hestia/log error.log 2025-02-04 04:54:09 v-update-sys-hestia  'hestia-nginx' [Error 19] 2025-02-04 04:54:44 v-update-sys-hestia  'hestia-php' [Error 19] 2025-02-05 04:40:24 v-update-sys-hestia  'hestia' [Error 19] 2025-02-05 04:40:45 v-update-sys-hestia  'hestia-nginx' [Error 19] 2025-02-05 04:41:06 v-update-sys-hestia  'hestia-php' [Error 19] 2025-02-06 04:49:45 v-restart-service  'nginx' 'yes' [Error 20] 2025-02-06 04:49:48 v-restart-web  'yes' [Error 20] 2025-02-06 04:49:49 v-restart-service  'php8.2-fpm' 'yes' [Error 20] i want to add these lines, location /api-grub { proxy_pass http://127.0.0.1:8033; proxy_http_version 1.1; proxy_set_he...

awstats fix for 55 server

 [root@linux2 bum]# cat daw.sh for user in $(ls /usr/local/directadmin/data/users); do   for domain in $(cat /usr/local/directadmin/data/users/$user/domains.list); do     awstats_config="/home/$user/domains/$domain/awstats/.data/awstats.$domain.conf"     awstats_path="/home/$user/domains/$domain/awstats/awstats.pl"     log_path="/var/log/httpd/domains/$domain.log"     if [ -f "$awstats_path" ] && [ -f "$awstats_config" ]; then       # Ensure AWStats is using the correct log file       sed -i "s|^LogFile=.*|LogFile=\"$log_path\"|" "$awstats_config"       echo "Updating AWStats for $domain (January 2025) using $awstats_path..."       cat /var/log/httpd/domains/$domain.log | \       perl "$awstats_path" -config=$domain -update     else       echo "AWStats config or script missing for $domain, skipping..."     fi   done ...