FusionPBX PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0, referer: /app/voicemail_greetings/voicemail_greetings.php?id=1001&back=%2Fapp%2Fvoicemails%2Fvoicemails.php

I was working on a FusionPBX and it wouldn’t upload a voicemail greeting. When i checked in the /var/log/httd/error_log there was a error PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0, referer: /app/voicemail_greetings/voicemail_greetings.php?id=1001&back=%2Fapp%2Fvoicemails%2Fvoicemails.php


After doing some digging around i found that the upload_tmp_dir = wasn’t set.

After editing /etc/php.ini

upload_tmp_dir = “/tmp”

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M

and service httpd restart

and all working.

Posted in: Blog

Leave a Comment (0) →

Windows can’t find driver USB Storage devices?

I spent a few days trying to figure this out, and apparently all modern versions of Windows suffer from it, yet it’s barely/poorly documented anywhere:

If your usb devices are no longer recognized by Windows, no matter how many times you try to install or update the drivers, go look in c:\windows\inf\ (make sure you can see hidden and system files) and see if you cannot find:


All you have to do is restore/replace them and bingo, everything will work again, I didn’t even have to reboot.

Try looking in C:\Windows\System32\DriverStore\FileRepository

Windows2k (2000), Windows XP, Vista and even Windows 7 suffer from this problem.

Basically my external mass storage (bulk storage) devices suddenly were not being seen when I plugged them in. Reinstalling the drivers was useless and just ended up saying that windows could not find the drivers needed.

Some program uninstalls those two when you uninstall it – I am not sure what, why or how but it’s yet another Windows mystery to solve.




Posted in: Blog

Leave a Comment (0) →

Reset Xerox Spooler

Unplug the machine from power for five minutes.

Plug it back in, but dont turn it on.

  1. Press and hold down the [6] button on the numeric keypad, the [Energy Saver] and the [Stop] buttons
  2. Then, only once you are holding those buttons, power on the machine. Continue to hold down the three buttons until the Touch Screen displays several lines, goes blank and then displays lines again.
  3. Release the buttons. The machine will continue its normal boot up procedure to initialize the spool disk.

Posted in: Blog, Technical

Leave a Comment (0) →

TCP Offload

IF your having slow network on your Centos box best you check for TCP offloading issues.

tcpdump -i eth1 -v -nn| grep -i incorrect


If you get a lot of > Flags [P.], cksum 0xc3d6 (incorrect -> 0xd4eb), seq 7496:7592, ack 9003, win 559, length 96


then try

ethtool -K eth0 rx off tx off sg off tso off ufo off gso off gro off lro off


Posted in: Blog

Leave a Comment (0) →

Centos password sniffer

Some time you need to see what customers are typing in as their password on the server to find typos.


tcpdump -i eth0 port smtp or port imap or port pop3 -l -A | egrep -i ‘pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|userna me:|password:|login:|pass |user ‘

This little command will show you unencrypted passwords on the fly.

Posted in: Blog, Technical

Leave a Comment (0) →

Round cube missing date.

If your “Date” column is blank, or if it’s showing incorrect values, then check your php.ini file, and set the correct timezone for your server.

A sample timezone setting would be:

date.timezone = “Australia/Melbourne”

but can be set to other values, if you know it (google for the proper values)

See this page for a list of all valid php timezones:

Posted in: Blog

Leave a Comment (0) →
Page 4 of 15 «...23456...»