Red Hat Linux – Can not find the Gnome enviroment.

Installed nxserver and trying to connect with nxclient. Error message: Install following: “X Window System” Mandatory Packages: yum install bitmap-fonts desktop-backgrounds-basic xorg-x11-drivers xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi  xorg-x11-fonts-ISO8859-1-100dpi  xorg-x11-fonts-ISO8859-1-75dpi xorg-x11-fonts-Type1 xorg-x11-fonts-misc xorg-x11-fonts-truetype xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-xfs xorg-x11-xinit “GNOME Desktop Environment” Mandatory Packages: yum install control-center  gnome-applets gnome-panel gnome-session gnome-terminal  metacity nautilus yelp Also follwing might also be required: bitmap-fonts…

php53 + apc

Today I have come across this problem: [root@www ~]# php -v PHP:  syntax error, unexpected BOOL_FALSE in /etc/php.ini on line 995 PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/fileinfo.so’ – /usr/lib64/php/modules/fileinfo.so: undefined symbol: php_pcre_exec in Unknown on line 0 PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/zip.so’ – /usr/lib64/php/modules/zip.so: undefined symbol:…

phpinfo from cli/terminal

php -r “phpinfo();” You can also use it: [root@www ~]# php -r “phpinfo();” | grep apc apc apc.cache_by_default => On => On apc.canonicalize => On => On apc.coredump_unmap => Off => Off apc.enable_cli => Off => Off apc.enabled => On => On apc.file_md5 => Off => Off apc.file_update_protection => 2 => 2 apc.filters => no…

How to identify heavy write to disk?

Info is from here You can easily see what process is consuming the most I/O bandwidth: dstat -ta –top-bio dstat -ta –top-io The first being the top block I/O, and the second the top I/O (including cached). This may help you validate if this is what you expect (both as consumer as well as the…

PHP mail tester

<?php $to = “admin@kowalczyk.me”; $subject = “Test mail”; $message = “Hello! This is a simple email message.”; $from = “someonelse@example.com”; $headers = “From:” . $from; mail($to,$subject,$message,$headers); echo “Mail Sent.”; ?>

Apache – deny access by referrer

Create .htaccess file in main (root) directory of your webserver/website with following content: RewriteEngine On # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} firstdomain\.net [NC,OR] RewriteCond %{HTTP_REFERER} anotherdomain\.com RewriteRule .* – [F]

Plesk 10 Unable to activate the domain: The domain is suspended

Unable to activate the domain: The domain is suspended. Some of the selected domains or aliases were not activated. I had one domain of many that was disabled after upgrade to 10.4.4 FIX: yum install tomcat* psa-mod_jk -y /usr/local/psa/admin/bin/tomcatmng –stop /usr/local/psa/admin/bin/tomcatmng –install-psa /usr/local/psa/bin/domain -u YOUR.SUSPENDED.DOMAIN -status enabled   Job done     Adding original error…