problem description: when logging in to horde and trying to go to the inbox you either get a blank page or a pop-up to save mailbox.php (can also be sidebar.php or others)
solution:
add export USE_ZEND_ALLOC=0 to /etc/apache2/envvars (on deb/ubuntu) or to /etc/sysconfig/httpd (red hat flavours)
restart httpd
Posted by admin on August 4, 2011 at 1:16 pm under none.
Tags: horde, plesk
1 Comment.
Can be done easy with epel yum repo. more info about epel: http://fedoraproject.org/wiki/EPEL
for centos 5:
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm
yum install imagemagick php-magickwand php-pecl-imagick
restart apache and done
That’s all.
Posted by admin on July 1, 2011 at 1:34 pm under linux, php, yum.
Comment on this post.
Each and every zone file has a unique serial number and that serial number should increment with each subsequent revision
A serial number is traditionally in the format (YYYYMMDDSS) where SS the sequence number. For example, today is 6/24/2011, so the serial number in a zone file modfied today would be… 2011062400.
So let’s say that you pushed that zone today and when you went back to make an additional change, you accidentally added an additional number to your serials and instead of 2011062400 you ended up with 22011062400.
In order to get everything back in order you will need to manually reset the zone file’s serial number by setting it to the number below. Its highest number you can get using 32 bits.
4294967295
To to reset your serial number, update your zone file with the serial number listed above and push it out to the slaves. Then change your zone files serial number back to the correctserial number, which will be considered to be greater than the magic number above. Then push dns again.
Check your slave servers and verify the the zone file now has the correct serial.
Original article: http://www.fatmin.com/2011/01/bind-zone-file-serial-number-reset.html
Posted by admin on June 24, 2011 at 7:09 pm under dns, linux, networking.
Tags: bind, serial, zone
Comment on this post.
in command prompt type: iisweb.vbs /query
Posted by admin on June 1, 2011 at 1:33 pm under IIS, webhosting, windows.
Tags: IIS, windows
Comment on this post.
tested on Horde: 3.1.7
don’t be tricked by these errors in log:
[error] [client ….] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-pear/PEAR.php
the errors can be disabled in /usr/share/psa-horde/config/conf.php
If you get white page [500 error] after login on horde you can try this:
edit files:
/usr/share/psa-horde/imp/lib/IMAP/Client.php line 576
modify function namespace($additional = array())
with function plmnamespace($additional = array())
/usr/share/psa-horde/imp/lib/Session.php line 295
modify $_SESSION['imp']['namespace'] = $imapclient->namespace($user_namespace);
with $_SESSION['imp']['namespace'] = $imapclient->plmnamespace($user_namespace);
reload the webmail page and logout/login again.
Please let me know if this helps you. Feedback is appreciated.
UPDATE:
modify all this files to get everything working properly
./IMAP/Tree.php:78: $ptr = reset($_SESSION[‘imp’][‘plmnamespace’]);
./IMAP/Tree.php:83: $this->_namespaces = (empty($GLOBALS[‘conf’][‘user’][‘allow_folders’])) ? array() : $_SESSION[‘imp’][‘plmnamespace’];
./IMAP/Tree.php:184: foreach ($_SESSION[‘imp’][‘plmnamespace’] as $val) {
./Folder.php:139: $delimiter = reset($_SESSION[‘imp’][‘plmnamespace’]);
./Folder.php:678: foreach ($_SESSION[‘imp’][‘plmnamespace’] as $val) {
./Session.php:259: $_SESSION[‘imp’][‘plmnamespace’] = $ptr[‘imap_config’][‘plmnamespace’];
./Session.php:265: $_SESSION[‘imp’][‘plmnamespace’] = array();
./Session.php:268: $user_namespace = (isset($ptr[‘plmnamespace’]) && is_array($ptr[‘plmnamespace’])) ? $ptr[‘plmnamespace’] : array();
./Session.php:278: $_SESSION[‘imp’][‘plmnamespace’][$val] = array(‘name’ => $val, ‘delimiter’ => $box[0]->delimiter);
./Session.php:295: $_SESSION[‘imp’][‘plmnamespace’] = $imapclient->plmnamespace($user_namespace);
./Session.php:296: if (!is_array($_SESSION[‘imp’][‘plmnamespace’])) {
./Session.php:318: $_SESSION[‘imp’][‘plmnamespace’] = null;
./IMP.php:1195: reset($_SESSION[‘imp’][‘plmnamespace’]);
./IMP.php:1196: $mailbox = key($_SESSION[‘imp’][‘plmnamespace’]);
./IMP.php:1204: foreach ($_SESSION[‘imp’][‘plmnamespace’] as $key => $val) {
./IMP.php:1211: if ($empty && isset($_SESSION[‘imp’][‘plmnamespace’][”])) {
./IMP.php:1212: $cache[$key][$mailbox] = $_SESSION[‘imp’][‘plmnamespace’][”];
./IMP.php:1236: foreach ($_SESSION[‘imp’][‘plmnamespace’] as $val) {
P.S. If you copy/paste the content to your blog, please quote the source 🙂
Posted by admin on May 12, 2011 at 6:02 pm under linux, php, plesk.
16 Comments.
sendmail –O LogLevel=14 –bs -Am
if sendmail is running via xinetd then add the line –O LogLevel=14 to server_args in /etc/xinetd.d/sendmail and reload/restart xinetd
this can help to catch spammers.
Posted by admin on April 27, 2011 at 11:00 am under email, linux.
Comment on this post.
SELECT DISTINCT CONCAT (‘show grants for `’, user, ‘`@`’, host, ‘`;’) AS query FROM mysql.user;
Posted by admin on February 8, 2011 at 12:41 am under mysql.
Comment on this post.
Since plesk 9.5, you can choose in plesk how php will run (as apache module will be executed as apache user, as cgi/fastcgi will be executed as domain user/system user)
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
wget http://www.atomicrocketturtle.com/RPM-GPG-KEY.art.txt
rpm --import RPM-GPG-KEY.art.txt
yum install mod_suphp
edit the /etc/httpd/conf.d/mod_suphp.conf and leave only LoadModule suphp_module modules/mod_suphp.so line
modify /etc/suphp.conf:
[global]
logfile=/var/log/suphp.log
loglevel=info
webserver_user=apache
docroot=/var/www/vhosts
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false
check_vhost_docroot=false
errors_to_browser=false
env_path=/bin:/usr/bin
umask=0022
min_uid=500
min_gid=500
[handlers]
x-httpd-php="php:/usr/bin/php-cgi"
x-suphp-cgi="execute:!self"
create file /etc/httpd/conf.d/zzz_suphp.conf with content:
<Directory /var/www/vhosts>
<IfModule mod_suphp.c>
AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml
suPHP_AddHandler x-httpd-php
suPHP_Engine on
</IfModule>
</Directory>
With this config you will enable the suPHP only for vhost folder and not for webmail and other folders.
You have also to check the file/folders permissions. If you have files/folders with 777 permission you will get a 500 error. You have to change it to 755 or 644.
Posted by admin on January 28, 2011 at 11:07 am under apache, linux, php, plesk.
Comment on this post.
As root:
Optional: if there is no custombuild folder use this:
======================================
cd /usr/local/directadmin
wget http://files.directadmin.com/services/custombuild/1.2/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
======================================
normal upgrade way (for debian install: libpcre3-dev libdb4.3-dev libperl-dev libsasl2-dev and skip the yum line)
======================================
cd /usr/local/directadmin/custombuild
yum -y install db4-devel cyrus-sasl-devel
./build update
./build update_script
./build set exim yes
./build clean
./build pcre
./build exim
=====================================
if first set is not working, use this one:
===============================================================
cd /usr/local/directadmin/custombuild
./build set custombuild 1.2
./build set exim yes
./build update
./build update_script
./build update_data
./build clean
./build exim
./build set custombuild 1.1
===============================================================
Posted by admin on December 18, 2010 at 12:01 am under email, linux, security.
Comment on this post.
Swap space is hard disk space that extends system RAM
Create a swap file (or partition)
dd if=/dev/zero of=/var/local/swapfile bs=1k count=1M
Write special signature
mkswap /var/local/swapfile
Add entry to /etc/fstab
/var/local/swapfile swap swap defaults 0 0
Activate swap space
swapon -a
Posted by admin on September 19, 2010 at 12:26 am under linux.
Comment on this post.