Prestashop 1.6.x.x contact form problem with sending messages.

Hi,

Yesterday my client told that his Prestashop 1.6.x.x don’t send messages from the contact form. Here is what i have done to solve this:

  1. Edit your Prestashop contact-form.tpl which is located in
  2. Search for <div class=”submit”>

    and add this:
  3. To make it work do:clear cache and recompile your theme → Save and after that undo those options – this worked for me

NethServer 7 PHP post_max_size and upload_max_filesize

Recently i have faced a problem that i was unable to upload to osTicket file to Knowledge Base larger that 12MB.

Since NethServer 7 is based on CentOS7 i have looked into php.ini file and changed required entries and restarted httpd server but nothing has changed…

Then I realised that since I a using NS7 I have to change somewhere else 😉

So this is what I have done:

And to make sure it’s working:

And now I was able to upload large files.

Thank’s to NethServer Community for this solution!

Apache UserDir in CentOS 7

Quick steps to set it up (I assume you have apache installed):

  1. login as root
  2. edit userdir.conf

  3. restart Apache
  4. setup your directory
    as normal user enter:
  5. if you use SELinux as root enter:
  6. create simple html page

    enter this:
  7. change ownership of file
  8. start your browser and enter this address:

     

    and voila! 😉

Cloning VirtualBox vmdk to vdi

First of all you have to shutdown VirtualBox machine that you wan’t to clone.
After that create new folder where you wan’t to clone existing vmdk machine to vdi

After that run this command in terminal:

Wait until the job is done and… that’s all.

Mounting Windows share in CentOS 7

Today i have to connect to Windows share from CentOS 7. This is how I done it:

then I have created directory in /mnt

after that:

That’s all 🙂

ClearOS 6.x , OpenVPN and Windows 10

Recently I have been in the UK, in a company where many users are connecting to my company server data via VPN and they have told me, that they have problems with OpenVPN client running on Windows 10.

First problem was with OpenVPN client version because, the newest client requires Administrator rights to start. The working version in my case was 32bit and 64bit versions.

The second problem was that after one hour the connection was closing down. Solution for that was easy. I had to only add those two lines

to openvpn config file – and that’s it. After one hour the connection was still up and runnig !

Cheers!

HP Proliant ML 110 G5, CentOS 7 and Smart Array P400

Recently i had to reinstall my old (but still working) server. I have bought Smart Array P400 instead of my old Smart Array E200, added new harddrives (WD Caviar Black 1TB x 2). And there was an issue regarding that on CentOS 7.x (RHEL 7.x) there is no more drivers for that controller. This was bad for me.

I have started to google the internet and have found a solution for this:
https://www.centos.org/forums/viewtopic.php?f=49&t=47011&start=20
and
https://www.centos.org/forums/viewtopic.php?f=49&t=51302&sid=850e80707bfb3db598f2c5be00ae5e51&start=10

Solution was simple:

  1. Download drivers from here http://elrepo.org/people/akemi/testing/el7/isos/
  2. Add above driver for CentOS 7 during boot process
  3. Install CentOS 7

Continue reading