Skip to main content

:: [re] compile imap on php5

:: what is
please take a look at this.

:: checking dependency
make sure openssl installed on the box
[ linux:~ ] # rpm -qa | grep openssl
libopenssl0_9_8-0.9.8g-47.1
libopenssl-devel-0.9.8g-47.8
openssl-certs-0.9.8g-47.1
openssl-0.9.8g-47.1

:: installing imap for php5 from source
[ linux:download ] # wget ftp://ftp.cac.washington.edu/imap/imap-2007a1.tar.Z
[ linux:download ] # tar -xzf imap-2007a1.tar.Z -C /usr/local/
[ linux:download ] # cd /usr/local/imap-2007a/
[ linux:imap-2007a ] # make slx SSLINCLUDE=/usr/include/openssl/
[ linux:imap-2007a ] # cp /usr/local/imap-2007a/c-client/c-client.a /usr/lib/libc-client.a
[ linux:imap-2007a ] # cp /usr/local/imap-2007a/src/c-client/mail.h /usr/include/
[ linux:imap-2007a ] # cp /usr/local/imap-2007a/src/c-client/rfc822.h /usr/include/
[ linux:imap-2007a ] # cp /usr/local/imap-2007a/c-client/linkage.h /usr/include/

:: [re] compile PHP5 from source
please take a look instructions on build php on centos before do this
[ linux:~ ] # cd download/php-5.3.0/
[ linux:php-5.3.0 ] # ./configure [OtherOptions] --with-imap=/usr/local/imap-2007a --with-imap-ssl=/usr/include/openssl
[ linux:php-5.3.0 ] # make && make install

:: testink
[ linux:php-5.3.0 ] # /usr/local/php5/bin/php -m | grep imap
imap

:: restart Apache Service
[ linux:php-5.3.0 ] # /usr/local/apache2/bin/apachectl stop
[ linux:php-5.3.0 ] # /usr/local/apache2/bin/apachectl start

:: Links
+ googlelinux
+ blackonsole
+ dominionweb

Comments

Popular posts from this blog

:: install postfix, cyrus, courier, mysql, postfixadmin, squirrelmail on opensuse

:: what is please take a look this. :: install dependency + installing berkeleyDB + installing MySQL + installing Apache + installing PHP :: remove sendmail [ root:~ ]# rpm -e sendmail --nodeps :: build cyrus-sasl [ root: ~ ]# wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# tar -xzf cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# groupadd mail [ root: ~ ]# useradd -u 96 -d /usr/cyrus -g mail cyrus [ root: ~ ]# passwd cyrus [ root: ~ ]# cd cyrus-sasl-2.1.23/ [ root: cyrus-sasl-2.1.23 ]# export CPPFLAGS="-I/usr/local/mysql/include/mysql" [ root: cyrus-sasl-2.1.23 ]# ./configure --enable-anon --enable-plain --enable-login --enable-sql --disable-krb4 --disable-otp --disable-cram --disable-digest --with-mysql=/usr/local/mysql --with-plugindir=/usr/lib/sasl2 --without-pam --without-saslauthd --without-pwcheck [ root: cyrus-sasl-2.1.23 ]# make && make install :: installing Postfix + download postfix [ root:~ ]# wget http://mirror.postfix.jp/...

:: wordpress theme reset to default

:: whatis wordpress WordPress is an open source CMS, often used as a blog publishing application powered by PHP and MySQL. It has many features including a plugin architecture and a templating system. -[ http://en.wikipedia.org/wiki/Wordpress ]- :: reset themes wordpress to default # with cli [ linux: ~ ]$ mysql -u user -p mysql> use dbwordpress; mysql> UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; mysql> UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; # share hosting / cpanel / phpmyadmin 0. login on cpanel / phpmyadmin 1. select db for wordpress 2. select SQL tabs and run this command: UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; 3. click GO 4. open your site, if you still get blank screen, you can login on admin page ...

Simple Step Installing WordPress in Ubuntu 24.04

Using ols1clk.sh Script This step will: Install OpenLiteSpeed Install PHP Secure your server Install MySQL Set up WordPress Run the script: bash <( curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh ) -w  Configuring WordPress Open your browser and navigate to your domain: http://yourdomain.com You’ll be greeted by the famous WordPress installation wizard. Follow these steps: Select your preferred language. Enter your site title, username, and password for the WordPress admin account. Click "Install WordPress." And just like that, you’ve done it!