How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

October 30, 2013

PHP-SOAP Installation on DirectAdmin

Filed under: Linux — admin @ 4:29 pm

New problem on my side. On a DirectAdmin server. First of all I was thinking that it using repository, however I was wrong. The direct admin use a custom build.
So , how to install php-soap on a directadmin server without yum install php-soap ?

Well first of all you can go do build directory :
cd /usr/local/directadmin/custombuild

Here you can see what is the actual configuration with:
./build used_configs

The php file will be I think
/usr/local/directadmin/custombuild/configure/suphp/configure.php5

Now append –enable-soap to the end of the file. Don’t forget to add a “\” to the end of the last line.
Basically you will have something like :

“–enable-mbstring” \
“–with-imap” \
“–with-imap-ssl”

You have to modify it something like

“–enable-mbstring” \
“–with-imap” \
“–with-imap-ssl \”
“–enable-soap”

After this run
./build php all

Regards

October 3, 2013

SSH key-type, rsa, dsa generate

Filed under: Linux — admin @ 9:07 am

Hello
Well if you need to connect using rsa key or dsa is easy to genearte them .
Just run this in directory where you want the output.

ssh-keygen -t rsa -b 4096 -f id_rsa

DSA is faster for signature generation but slower for validation, slower when encrypting but faster when decrypting and security can be considered equivalent compared to an RSA key of equal key length.

You can add also
-C "your_email@example.com"

September 5, 2013

svn: E170000: Unrecognized URL scheme for http*

Filed under: Linux — admin @ 10:03 am

Hello
Well in the few past day I upgraded some svn to 1.7 . First problem is this. with Unrecognized URL scheme for http.
Well it appear that you need neon for this .
So here we go
wget http://www.webdav.org/neon/neon-0.29.3.tar.gz
tar -xzvf neon-0.29.3.tar.gz
cd neon-0.29.3
./configure --with-ssl
make
make install

Also I think yum install neon-devel should work also . But didn’t try it .

Now if you have a error with sqlite, you have to install sqlite-devel on your server .

After this
wget http://mirrors.hostingromania.ro/apache.org/subversion/subversion-1.7.13.tar.gz
tar -zxvf subversion-1.7.13.tar.gz
cd subversion-1.7.13
./configure --with-ssl --with-neon=/usr/local
make
make install

Now this is for centos, if you have debian you should install more programs. I did try to upgrade a debian and took me some time to do this .

Regards

September 2, 2013

ispconfig dovecot: auth: Error: Can’t open configuration file /etc/dovecot-sql.conf

Filed under: Linux — admin @ 10:17 am

Well today I am trying to setup a ispconfig. When I try to log on mail I have a wired problem that imap is not working. So when I looked into maillog I see this error
auth: Error: Can’t open configuration file /etc/dovecot-sql.conf

Well the fis is pretty simple .
ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf
ln -s /etc/dovecot/dovecot.conf /etc/dovecot.conf

After this restart dovecot, and the mail will work.

July 24, 2013

Setting up tunnel in WinSCP

Filed under: Linux — admin @ 11:10 am

Hello
I know that this post is like copy paste however I wanted for me to be here. Mainly I use this site so not to search again some information . I came here and use it. Today I wanted to copy some files from server B, that I can access it only from server A. But I am on host C. So how to do it ?
Well start cmd where is your putty located and run there
putty.exe -L 3111::22

Where 3111 will be forwarded port port 22 on server B
Now on my computer C I open winscp and connect to localhost and port 3111.

That’s all .

« Newer PostsOlder Posts »

Powered by WordPress