Browsed by
Tag: Lib

HOWTO: PHP with IMAP support for CentOS6

HOWTO: PHP with IMAP support for CentOS6

I’ve pulled my hairs getting a proper working version of IMAP compiled within PHP. The trick was to compile the extension without issues. I wanted to get the latest version of IMAP. As such the way to go on CentOS 6.3 x86_64 (64 bits) was: Prepare the OS Code: yum install -y pam-devel libc-client libc-client-devel Install IMAP from source Code: wget ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz tar -zxvf imap-2007f.tar.gz cd imap-2007* make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd IP6=4 echo "set disable-plaintext nil" > /etc/c-client.cf mkdir /usr/local/imap-2007f…

Read More Read More

Backup Problem with Mysql

Backup Problem with Mysql

i installed DA with custombuild 1.2 but when i want backup to all my users i see this error : Quote: Error connecting to MySQL: Access denied for user ‚da_admin’@’localhost’ (using password: YES) <b>Repair guide: <a target=_blank href=’http://help.directadmin.com/item.php?id=45′>http://help.directadmin.com/item.php?id=45</a></b> and when i try this guid step by step i dont solve the problem . when i try step 1 in this guid in cant use mysql command see the error : Quote: [root@Server /]# /etc/init.d/mysqld stop Shutting down MySQL. SUCCESS! [root@Server…

Read More Read More

Open_basedir in default /usr/local/directadmin/data/users/*/php/php-fpm54.conf

Open_basedir in default /usr/local/directadmin/data/users/*/php/php-fpm54.conf

My CB 2.0 setup: Code: php1_release=5.3 php2_release=5.4 php1_mode=mod_php php2_mode=php-fpm The build was successful and I could change a domain to PHP-FPM by adding this to the Custom HTTPD setup: Code: <IfModule mod_fastcgi.c>         <FilesMatch "\.(inc|php|php3|php4|php44|php5|php52|php53|phtml|phps)$">                 SetHandler php54-fcgi         </FilesMatch> </IfModule> But then some of my PHP-libraries in /usr/local/lib/php/share did not work anymore. No big deal, I thought. Just create a symlink from /usr/local/php54/lib/php/share to /usr/local/lib/php/share. Still…

Read More Read More

Couldn\’t connect to MySQL: from time to time

Couldn\’t connect to MySQL: from time to time

Hello, My website functions normally except sometimes i get this error Couldn\’t connect to MySQL: Can\’t connect to local MySQL server through socket \’/var/lib/mysql/mysql.sock\’ What’s going on, and what is causing it? I have a dedicated 4GB ram @3.2Ghz processor, My website generate many Update sql statements and httpd connections Thank you

HOWTO: mod_fcgid in CB 2.0, switchable to suphp

HOWTO: mod_fcgid in CB 2.0, switchable to suphp

This post will show you how to install mod_fcgid, using custombuild 2.0, and create a setup where the admin can choose for every individual DA-user between mod_php, suphp and mod_fcgid. I am using this on my Centos server with Apache 2.4.3, PHP 5.3 as mod_php and PHP 5.4 as suphp/mod_fcgid. The initial options.conf contains Code: php1_release=5.3 php2_release=5.4 php1_mode=mod_php php2_mode=suphp As first step on a running server we have to build mod_fcgid. Perform these steps as root: Code: cd /usr/local/src wget…

Read More Read More

Per user Configurations with Custombuild 2.0 + PHP-FPM

Per user Configurations with Custombuild 2.0 + PHP-FPM

Hi, on Custombuild + suphp I add configurations per user that add more security on user_create_post was: #!/bin/sh # create custom temp directory rm -rf /home/$username/tmp mkdir -p /home/$username/tmp chown -R $username:$username /home/$username/tmp # create custom php.ini rm -rf /usr/local/directadmin/data/users/$username/php/ mkdir /usr/local/directadmin/data/users/$username/php/ chown $username:$username /usr/local/directadmin/data/users/$username/php/ touch /usr/local/directadmin/data/users/$username/php/php.ini echo "open_basedir = /home/$username/:/tmp/:/var/www/html/:/usr/local/php5/lib/php" >> /usr/local/directadmin/data/users/$username/php/php.ini echo "upload_tmp_dir = /home/$username/tmp/" >> /usr/local/directadmin/data/users/$username/php/php.ini echo "session.save_path = /home/$username/tmp/" >> /usr/local/directadmin/data/users/$username/php/php.ini chown root:root /usr/local/directadmin/data/users/$username/php/php.ini chattr +i /usr/local/directadmin/data/users/$username/php/ exit 0; there is some possible to add some…

Read More Read More

2 issues. 1 = restore error and 1 = service monitor error

2 issues. 1 = restore error and 1 = service monitor error

Hi, No 1) I’m trying to move some site from one DA server to another DA server (same OS and DA version). I’ve tried the Admin Backup/Transfer and the get an error on not being able to read.db file. (Unable to read /home/netwnet01/backups/backup/domain.nl/domain.nl.db : Can’t open file /home/netwnet01/backups/backup/domain.nl/domain.nl.db for reading) And when I try the Manage User Backups I get an error that it can’t connect to MySQL + that same .db error! (Error connecting to MySQL: Can’t connect to…

Read More Read More

Spam assign socket error

Spam assign socket error

Hello all, Im new here en im new with having a own da. but when i’ll upgrade my versions i got this. Dec 13 23:41:05.332 [7571] error: Socket version 1.95 required–this is only version 1.78 at /usr/lib/perl5/site_perl/5.8.8/IO/Socket/SSL.pm line 92. Dec 13 23:41:05.333 [7571] error: Can’t locate IO/Socket/IP.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8) at /usr/lib/perl5/site_perl/5.8.8/IO/Socket/SSL.pm line 106. Latest version of SpamAssassin: 3.3.2 Installed version of SpamAssassin: 3.3.2 So can someone help. greats.

Apache 2.4

Apache 2.4

hello when upgrade my server apache from 2.2 to 2.4 shown below error and apache has been stoped Code: custombuild]# service httpd restart Stopping httpd:                                            [FAILED] Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: ap_log_rerror i need to upgared my apache and…

Read More Read More

Error converting to Custombuild2

Error converting to Custombuild2

Following exactly the step-by-step instructions in these forums for converting to CustomBuiild 2 I ran into these errors, which stopped as shown. Any ideas? Code: Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so:  /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: php_body_write Zend Guard Loader requires Zend Engine API version 220090626. The Zend Engine API version 220100525 which is installed, is newer. Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader. Fatal error: Directive ‚allow_call_time_pass_reference’ is no longer available in PHP in Unknown on line 0…

Read More Read More

not install php-imap with php5.3 and 5.4

not install php-imap with php5.3 and 5.4

my options.conf: Code: php1_release=5.3 php2_release=5.4 php1_mode=php-fpm php2_mode=php-fpm php_ini=yes /usr/local/directadmin/custombuild/custom/suphp/configure.php53 and /usr/local/directadmin/custombuild/configure/suphp/configure.php53: Code: #!/bin/sh ./configure \         –prefix=/usr/local/php53 \         –program-suffix=53 \         –enable-fastcgi \         –enable-force-cgi-redirect \         –with-config-file-scan-dir=/usr/local/php53/lib/php.conf.d \         –with-curl=/usr/local/lib \         –with-gd \         –enable-gd-native-ttf \         –with-gettext \         –with-jpeg-dir=/usr/local/lib \         –with-freetype-dir=/usr/local/lib…

Read More Read More

Cannot load /usr/lib/apache/mod_fastcgi.so into server: /usr/lib/apache/mod_fastcgi.s

Cannot load /usr/lib/apache/mod_fastcgi.so into server: /usr/lib/apache/mod_fastcgi.s

Hi, CB 2.0, Debian 6, today try to update from CB 1.2. Removed all custom apache config. options.conf Code: #PHP settings. Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4 php1_release=5.3 php2_release=5.4 php1_mode=suphp php2_mode=php-fpm php_ini=yes #Possible values – production or development php_ini_type=production ioncube=no zend=no after ./build php I get: Code: Copying php.ini.. /usr/local/php54/lib/php.ini already exists, skipping. PHP 5.4.8 Installed. ulimit: 25: error setting limit (Invalid argument) ulimit: 25: error setting limit (Invalid argument) Gracefully shutting down…

Read More Read More

Correction for Custombuild 2.0 FAQ

Correction for Custombuild 2.0 FAQ

15. I have installed PHP 5.3 (or PHP 5.4) with php-fpm or suphp option. Where the configuration files (php.ini) could be found? Extensions (zend, ioncube) are enabled here: -> Should be : Quote: /usr/local/php53(54)/lib/php.conf.d/directadmin.ini 12. How to make PHP 5.3 or PHP 5.4 default for 1 host if both are installed as php-fpm or suphp? Add this to .htaccess for PHP 5.4 as default for php-fpm: Quote: <FilesMatch \.php$> SetHandler php54-fcgi </FilesMatch>

Active Directory 2003 user database and passwords with special characters‏

Active Directory 2003 user database and passwords with special characters‏

Hello everybody, As explained in the topic, i have troubles with authentication of my users. First of all, sorry for my poor english… I’m running dovecot v1.2.15 on a Debian 6 64bits server up to date. My users database is an Active Directory 2003 (it’s important to know that because Active Directory can’t retrieve users passwords, you have to bind LDAP with a domain administrator). So, i’m using userdb ldap for authenticated my users and it works ! BUT… When…

Read More Read More

Webalizer – libpng12.so.0: no version information available

Webalizer – libpng12.so.0: no version information available

I spent a few hours now on getting webalizer working. Webalizer isn’t creating any stats: "You must wait for the stats to be computed. This will only happen *after* logs exist (domain must resolve and be used)." I followed all the steps in the webalizer debug guide, everything seems to be fine. My task.queue is being processed, webalizer is at the right location, user list is created with the all the user’s in it, etc. etc. etc. The only thing…

Read More Read More

Munin does not update result

Munin does not update result

Dear Supporters, I’m having a server which run munin, but it suddenly stop working from Monday. I have tried to re-copy it but it show error: $rm -rf /var/www/munin-html/* $su -s /bin/bash munin bash$/usr/bin/munin-cron [ERROR] Could not copy contents from /etc/munin/static/ to /var/www/munin at /usr/lib/perl5/vendor_perl/5.8.8/Munin/Master/HTMLOld.pm line 711. This mean the script try to copy data to /var/www/munin-html/ but it can not. Is there something related to the folder permission of /etc/munin/static? Thank you.

Install PHP with – T1Lib and XPM support

Install PHP with – T1Lib and XPM support

Hi to all, I’m new to DA, and from forum I see that i must use custombuild for PHP options (T1Lib, XPM). I use centos 6.3, PHP 5.3.18 (CGI) and suPHP 0.7.1. How i can install T1Lib and XPM. What file do I need to edit. Best regards EDIT: I did: HTML Code: cd /usr/local/directadmin/custombuild  mkdir -p custom/ap2  cp configure/ap2/configure.php5 custom/ap2/configure.php5  nano custom/ap2/configure.php5 after that i add –enable-t1lib and final HTML Code: ./build clean ./build php service httpd restart and…

Read More Read More

How to change PHP include directories?

How to change PHP include directories?

DUh! Where’s my php.ini? How do you make a good site with your permission. Where are these things? Warning: include() [function.include]: open_basedir restriction in effect. File(/support/ajax/main.php) is not within the allowed path(s): (/home/dirirscom1/:/tmp:/var/tmp:/usr/local/lib/php/) in /usr/home/dirirscom1/domains/dirirs.com/public_html/index.php on line 2 Warning: include(/support/ajax/main.php) [function.include]: failed to open stream: Operation not permitted in /usr/home/dirirscom1/domains/dirirs.com/public_html/index.php on line 2 Warning: include() [function.include]: Failed opening ‚/support/ajax/main.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in /usr/home/dirirscom1/domains/dirirs.com/public_html/index.php on line 2 Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‚root’@’localhost’ (using password: NO) in /usr/home/dirirscom1/domains/dirirs.com/public_html/index.php…

Read More Read More

After doing an update

After doing an update

after i did this Code: cd /usr/local/directadmin/custombuild ./build update I get this error in ssh Code: grep: error while loading shared libraries: /usr/local/lib/libpcre.so.0: file too short Cannot find Apache  configure files. plz need help. and after i did yum update i get this Code: /sbin/ldconfig: File /usr/local/lib/libmcrypt.so.4.4.8 is empty, not checked. /sbin/ldconfig: File /usr/local/lib/libpcreposix.so.0.0.0 is empty, not checked. /sbin/ldconfig: File /usr/local/lib/libpcrecpp.so.0 is empty, not checked. /sbin/ldconfig: File /usr/local/lib/libpcre.so.0.0.1 is empty, not checked. /sbin/ldconfig: File /usr/local/lib/libmcrypt.so.4 is empty, not checked. every…

Read More Read More

MySQL Stopped after installed Directadmin

MySQL Stopped after installed Directadmin

I had installed Directadmin but MySQL Stopped I use this command: service mysqld restart one error appear:" [root@server ~]# service mysqld restart ERROR! MySQL server PID file could not be found! Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/server.hostingdomainpro.net.pid)." please help me fix the problem I use centos 6 64bit thanks a lot