Category Archives for No category

Apache 2.4 redirect http to https via .htaccess

Just edit main .htaccess file and add:

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Of course you must have load mod_rewrite in your Apache config.

Using console Symfony2 shortcuts to app/console in Windows

Hi,

I`m developing using Symfony2 in Windows. I`m little tired still write “php app/console something…”. So I was wondering is there easier way. Should be possibilities to write aliases or shortcuts to console command.Continue reading

msvcr110.dll missing problem with PHP

After update GIT I notice problem with start my php installation on Windows 7. I don`t know it`s related to git update, however solution is easy.Continue reading

Plextor M5P update firmware by USB pendrive

So, as I mentioned before in my laptop I haven`t DVD drive. This is a problem when I want to update firmware in my Plextor M5P SSD drive. I try couple of make-USB-bootable drive software with no success. To now.

Step-by-step.

Continue reading

Incoming search terms:

  • linux ubuntu usb bootable

SSD freezing Windows 7 problem and fix

Recently I replaced the hard drive to SSD in my laptop Dell XPS 1647 . My choice was  Plextor M 5P Pro 128GB. As the magazine moved the existing drive in place of the optical drive – but that’s another story .

All beautifully and nicely – increase speed visible but … From time to time the system Windows 7 freeze . HDD LED is shining, the system don’t respond . It took a few minutes and occurred several times a day . Very annoying!

I started looking and found that it is responsible: Intel Rapid Storage Technology (RST) . In particular, LPM (Link Power Management) and DIPM (Device Initiated Power Management) . Theoretically, these systems have lower energy consumption SATA devices that support it , but as I can see can have side effects.

It remains to turn them off. RegEdit and go to work 😉Continue reading

DirectAdmin recursive set “proper” permission for files and folders

You must use console and type for all users files and folders:

find /home/*/domains/*/public_html -type f -exec chmod 644 {} \;
 find /home/*/domains/*/public_html -type d -exec chmod 755 {} \; 

If you want use only for specified directory just change patt pattern…

Have good day 🙂

Incoming search terms:

  • direct admin permission codes

Symfony2.3: The dist file “app/config/parameters.yml.dist” does not exist. Check your dist-file config or create it.

After update my Symfony2 project to Symfony2.3 i get:

The dist file “app/config/parameters.yml.dist” does not exist. Check your dist-file config or create it.

Easiest way is copy app/config/parameters.yml to app/config/parameters.yml.dist and run php composer.phar update again.

That’s all! Have a nice day 🙂

Installing latest stable Git on Debian 6.0

I want install on my Debian 6 git. Apt-get install git give me old version. So, step by step to install latest stable git version on Debian:

apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
wget https://www.kernel.org/pub/software/scm/git/git-1.8.4.1.tar.gz
tar -zxf git-1.8.4.1.tar.gz
cd git-1.8.4.1
make prefix=/usr/local all
make prefix=/usr/local install

Ups…. result make:

LINK git-credential-store
libgit.a(utf8.o): In function `reencode_string_iconv':
/root/git-1.8.4.1/utf8.c:530: undefined reference to `libiconv'
libgit.a(utf8.o): In function `reencode_string_len':
/root/git-1.8.4.1/utf8.c:569: undefined reference to `libiconv_open'
/root/git-1.8.4.1/utf8.c:588: undefined reference to `libiconv_close'
/root/git-1.8.4.1/utf8.c:582: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [git-credential-store] Error 1

So download and compile necessary library libiconv:

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar -zxvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local/libiconv
make
make install

and repeat make, make install from beginning…That’s all!

Have a nice day 🙂

Incoming search terms:

  • debian 6 0 6 install git

How to install ImageMagick and php extension Imagick on Debian 6.0 + DirectAdmin?

After few months I want to install ImageMagick and Imagick on new server and again digging how to do this. To avoid this next time I wrote those post.

My config is: Debian 6.0, OpenVZ, DirectAdmin, php as php-fpm.

So, first install ImageMagick:Continue reading

Joomla 3.1 installation problem – brake on first step

I try install Joomla 3.1.5 on my VPS and installation problem stop after click to next step… First I tought it’s source broken – then download again – not help. After searching I found it’s related to server configuration, but I don’t want to align my server config only to one script. So this is – maybe not so clean – but worked solution.Continue reading

1 2 3 4