Backend log: PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0

It is a common php error appears when PHP handler unable to detect the server temporary folder automatically. A solution to the problem is to define the upload_tmp_dir of the php explicitly. You can do that by editing the php.ini file. Here is an example on how to do it:

To find the running php.ini file, use phpinfo:

root@chicago1 [~]# php -r ‘phpinfo();’|grep php.ini
Configuration File (php.ini) Path => /opt/cpanel/ea-php56/root/etc
Loaded Configuration File => /opt/cpanel/ea-php56/root/etc/php.ini

As the command suggests, your php.ini file is located under the following:

/opt/cpanel/ea-php56/root/etc/php.ini

Now, edit the file using your favorite editor:
nano /opt/cpanel/ea-php56/root/etc/php.ini
Find the location of upload_tmp_dir, which is usually commented out like the following:

;upload_tmp_dir =

Uncomment it by removing the semicolon from front and define the temporary directory location:

upload_tmp_dir = /tmp

Restart your apache.

There is another way you can do it. To do this, go to WHM >> MultiPHP INI Editor >> Editor Mode >> Find upload_tmp_dir and edit it accordingly.

This would create a user.ini file to be included with the original php.ini file.

If none of the above solution works for you, you are probably seeing the error from modsecurity, try following the following steps to see if that overcomes the error:

ModSecurity: Multipart parsing error: Multipart: Failed to create file: /root/tmp/20170526-122120-WSfJYO2KhTvEz5johZF8UQAAAEw-file-9mmG15

How to Solve Force File System Quota Check on Every Boot RHEL/CentOS

I had been seeing an uprising issue of forced file system quota check on every boot after migrating to RHEL 6 or CentOS 6. I hadn’t seen the same issue before. I had been tackling it by changing the quotacheck file on each boot to something different. Quotacheck file is located:

$ ls /sbin/quotacheck

I couldn’t get enough information on something was changed in RHEL 6 which triggered this event. I went to trace out the root reason of this starting from Linux Boot Init script.

Continue reading “How to Solve Force File System Quota Check on Every Boot RHEL/CentOS”

Hostingseclist.com – Something worth subscribing!

Folks from RACK911 created a listing page called http://hostingseclist.com

Its a list of recent security notices related to web hosting industry. The list is pretty fast to notify when a vulnerability arrives and most of the cases, they include a discussion linking to Webhostingtalk. It is hard to subscribe to every product developer and keep updated with their latest bug reports. While HostingSecList seems to be collecting everything in one. They are also checking each of the bug reported before posting them online. They also list community reported bugs.

HostingSecList.com is something worth subscribing out of all spammers right these days!

How to open .gz file in Linux/Unix?

You need to use gzip/gunzip program to open/extract a .gz file. It is based on DEFLATE algorithm. All the Linux/Unix comes with default gzip/gunzip program as it is used as primary compression technique in Linux/Unix based system.

How to extract a .gz file?

gunzip yourcompressfile.gz

or

gzip -d yourcompressfile.gz

-d refers to decompress the gzip file.

To view the latest file, type

ls -l

How to extract tar.gz file?

tar.gz files are tar files compressed with gunzip. You can use the tar program in Linux to extract a tar.gz file as following:

tar -xvzf yourfile.tar.gz

Here, x = extract, v = verbose, z = gzip, f = force

If the tar file isn’t compressed with gunzip, then you need to exclude the ‘z’ option which would be as following:

tar -xvf yourfile.tar

Why are we using Softlayer Nameservers?

I was reviewing the live chat transcripts earlier today. An interesting one that was served by “Ronskit”, a live chat operator of Mellowhost caught my attention. One of our visitor was interested to know, why are we using Softlayer nameservers for the domain “mellowhost.com” (http://intodns.com/mellowhost.com) instead of ns1.mellowhost.com or so on. The visitor was more interested in proving that Mellowhost is hosted in a shared server and all of our clients are also using a server that is not really managed by Mellowhost. His excuses were flowing towards why we don’t sell VPS or Master Resellers, or so called “Alpha” Master Resellers instead we only sell Reseller and Shared Hosting. It is eventually hard to answer a management level of query by a sales representative and as expected he wasn’t able to please the visitor 🙂 I quickly thought to write this down for future references.

 

Continue reading “Why are we using Softlayer Nameservers?”

2Checkout

As we do not have an offline Credit Card processing option, we were planning to add 2Checkout for long time. We had been seeing many requests from “Africa” and Middle East countries requesting to use 2Checkout. We have finally made 2Checkout available for all types of Payment to Mellowhost services. You can now select 2Checkout from the Payment Option for new orders or paying the recurring bills. 2Checkout can be used for paying with Direct Credit Card.

Happy Hosting!

Some good budget servers!

We use Softlayer and Liquidweb for all of our production servers. None of them is really a budget server provider. Softlayer does sell some budget servers which are not at all good for production servers planned for web hosting services due to their inability to upgrade in future (Like xpress servers). Moreover the price isn’t really right for the same set of hardwares with some other budget provider. We have been using budget servers for our backup servers which usually can hold tons of TBs of data.

Continue reading “Some good budget servers!”

How to protect your WordPress blog from web injection

I have been thinking to write this post for long time, although, couldn’t get time to write details about this major security issue. From my experience, I have seen a big percentage of users are using WordPress and a certain percentage always face some sort of Web Injections (Iframe for example) with any shared hosting provider. This post would go into deep to study why these web injections are occurring and how can you protect your wordpress blog from these sort of issues.

Continue reading “How to protect your WordPress blog from web injection”

First Impression on Windows 7

I have been using my Macbook for all of my work from last year. My desktop had the old windows xp. I was using Livezilla client which has only windows application (We got Providesupport today replacing Livezilla, as it got mac client, should post a new topic on it). This is why I had to use the desktop as a part of business along with my macbook. I was planning to upgrade this box for a long time. Didn’t really have enough time to do so. Yesterday, I went to a Microsoft showroom here, and got a license for Windows 7 Professional. They took 165$ in local currency for the Windows 7 Professional. I was actually hoping for Windows 7 Ultimate, but the pricing for ultimate (215$) was out of my budget. I had upgraded my RAM and Motherboard couple of days ago after a recent crash of my graphics card. I was well aware that my current hardware configuration should sustain Windows 7 Pro.

Installation went smooth. It was pretty faster than Windows XP if I can remember (Last time, I installed windows was in 2007). After using Macbook for last one year, I was continuously losing my interest on windows. Mac OS X Leopard is fast, virus free and most importantly, it doesn’t crash so frequently like my windows did before. I wasn’t really expecting much from Windows 7 over Windows XP. But I have to say, I am pretty much amazed with the performance and design tactics. I find it way faster than XP and in some cases, it would beat my Mac. I was hearing about the hardware acceleration improvement on Internet Explorer 9 and waiting to try it. It really squeezes your net! I tested both IE 9 and FF 4 Beta 6 on my windows 7, and I can definitely feel IE is performing better than FF. Older IE had tremendous problem with the tab opening, but IE 9 has overcome the issue, it looks like. It is opening tabs faster than FF 4. Although, sites are loading fast, but the compatibility seems to be a problem with IE 9. It can not load lots of javascripts and css, so I assume, it has more to improve.

I specially like the design of Task manager in Windows 7. I was using Windows 2008 R2 in one of my windows VPS, and it is pretty similar to that one. Linux is having lots of tools to find the bottlenecks of a system from scratch. I have never seen windows feeling interest for it. There are lots of geeks who would feel to tweak their OS and find the best from it. Although, windows have always been casual to give such tools to end users. This time, I can see windows is feeling the need. They have a Resource Monitor service built in to allow users to track root level usage.

Quick preview system for the tasks seem pretty nice. I can remember in old XP, when I was using the IE 6 and having around 20-25 windows opened, and the task bar was filled with “…”.

They seem to be having lots of improvement in the process management. I tried running couple of injections on svchost and other services, it seems, the current structure simply discards them. Even though, those were working with the latest update of windows xp. I read an article on Windows Server 2008 around a year ago, regarding the process architecture of it, and if I can remember correctly, Windows is more on following the linux architecture day by day. Users permission on process management is becoming more important. I would definitely work with it in later time and post a detailed report for Mellowhost blog readers 🙂

I have spent 6 hours till now with windows 7 professional edition, and I have say, I am impressed. You do need a good configuration to run it, but it is nevertheless a waste anymore. Keep up the good work Microsoft.

An Idea of Quality Analysis Department!

Mellowhost is nearly touching it’s 4th Anniversary in the hosting business. We have worked hard in last years to make the hosting environment more innovative and perfect for our clients. In most of the situations we have tried our level best to give the best performance you can ever expect from a shared hosting environment.

There are many reviews from our clients in different places. There were some situations, we have seen our customers misunderstanding and expressing their feelings. It is pretty hard to make an environment suitable for every sort of users, but our target is and was always to make it right for all. We have worked with all possible clients to overcome the understanding we had to make it positive in every possible aspects.

Contacting the host is probably the best choice to clear the ideas. It helps both parties to come to an understanding. I have seen some users in past who were having some issues with their CMS, but thinking it was a server issue. Even though, we do not provide 3rd party support, but to make the situation go right and concluding the misunderstanding, we have worked with the client to fix his/her CMS. The root factor to conclude this sort of situations is to contact.

We are planning to start a “Quality Analysis Department” which will be aimed to keep in touch with our clients. One can submit any sort of feedbacks (Example: unsatisfactory support, unsatisfactory server performance, unsatisfactory uptime etc. which makes you unsatisfied with the service) through the desk to our Quality Analyst. We will start digging on your query and try to find a way to solve your problem with the co-operation of other respective departments. Our Quality Analyst team will try to monitor ticket activity to find user’s satisfaction level. In case, we feel, one is unsatisfied with a specific reason, we will immediately contact him/her with the possible solutions we can provide to solve the case through QA Desk. A little co-operation from clients may solve these sorts of unwanted situations.

We are in the process of training our human resources to be a Quality Analyst. This process is still going and we expect to launch this department within November.

Happy Hosting!