prosoxi.com | Attention in classroom

Plesk mod_fcgid + php flush() function enable

04 December 2014

I set following option in /etc/httpd/conf.d/fcgid.conf file which solves the problem generally (but it would not when Plesk is installed):OutputBufferSize 0 Try to configure OutputBufferSize option for the exact domain, for this create vhost.conf filein domain document root (usually /var/www/vhost/domain.tld/conf folder), add OutputBufferSizeoption with necessary value there and run /usr/local/psa/admin/sbin/websrvmng -a -v

Read the full story

Posted in Plesk0 Comments

How to extract files to another directory using ‘tar’ command?

27 November 2014

To extract an archive to a directory different from the current, use the -C, or --directory, tar option, as in #tar -xf archive.tar -C /target/directory

Read the full story

Posted in Linux0 Comments

FreeNAS failed to wipe: Operation not permitted

26 November 2014

Quick Fix On step 3 be sure to replace ‘/dev/ada4′ with your drive reference. In the ‘view disks’ tab it will be the ‘name’ prepended with ‘/dev/’. 1. Login via SSH2. sysctl kern.geom.debugflags=0x103. dd if=/dev/zero of=/dev/ada4 bs=512 count=1 && dd if=/dev/zero of=/dev/ada5 bs=512 count=14. Log into web interface and use “View Disks” to wipe the […]

Read the full story

Posted in Linux0 Comments

HowTo: Add Jobs To cron Under Linux or UNIX?

01 October 2014

crontab command

Read the full story

Posted in Linux0 Comments

Linux send mail with attachmentattacement

01 October 2014

for centos install first mutt

Read the full story

Posted in Linux0 Comments

How To Set Up SSH Keys

30 September 2014

Step One—Create the RSA Key Pair The first step is to create the key pair on the client machine (there is a good chance that this will just be your computer):

Read the full story

Posted in Linux0 Comments

Freenas terminal access

30 September 2014

Login to your FreeNas Machine and open the Terminal enter:

Read the full story

Posted in Linux0 Comments

Adding public key to ~/.ssh/authorized_keys does not log me in automatically

30 September 2014

You need to verify the permissions of the authorized_keys file and the folder / parent folders in which it is located.

Read the full story

Posted in Linux0 Comments

install php spell check on linux

26 September 2014

For php spell checking in php on centos install

Read the full story

Posted in PHP0 Comments

How to set time zone of mysql?

26 September 2014

in the file “my.cnf” in the [mysqld] section default_time_zone='+00:00'

Read the full story

Posted in Linux, MySQL0 Comments

Cannot load from mysql.proc. The table is probably corrupted

18 September 2014

After upgrading MySQL from version 5.0 to 5.5 I started getting the following message trying to edit table structure in Navicat:

Read the full story

Posted in MySQL0 Comments

Useful CSF SSH Command Line Commands

15 September 2014

This article covers some useful CSF SSH Command Line Commands in a “cheat sheet” format.

Read the full story

Posted in Linux0 Comments

PHP the difference between http_build_str() and http_build_query()?

12 June 2014

By reading the API, it appears that http_build_str() does not URL encode the parameters, while http_build_query() does. http_build_str() also can take either an object OR an object as its primary argument, while http_build_query() only takes an array.

Read the full story

Posted in PHP0 Comments

Sorting a VARCHAR column as FLOAT using the CAST operator

10 June 2014

Solution 1 SELECT guid, number FROM table ORDER BY number * 1 DESC  

Read the full story

Posted in MySQL0 Comments

Sort Multi-dimensional Array by Value

04 June 2014

How can I sort this array by the value of the "order" key? Even though the values are currently sequential, they will not always be.

Read the full story

Posted in PHP0 Comments

Reading mail from /var/spool/mail/root

02 June 2014

Try mutt.

Read the full story

Posted in Linux0 Comments

Advertise

Whocallsme.gr Widget Lookup