sudo nano /etc/auto_master
Add to the end
sudo nano /etc/auto_nas
Shared -fstype=afp afp://username:password@nasname/Shared
sudo automount -vc
drag them to Favs
sudo nano /etc/auto_master
Close all office programs.
Run CMD as As admin
cd %programfiles%\Common Files\Microsoft Shared\ClickToRun
officec2rclient.exe /update user updatetoversion=16.0.7766.2060
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.
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.
If you need to register a lof of dll’s all at once this command will help you out.
for %x in (c:\windows\system32\*.dll) do regsvr32 -s %x
Unplug the machine from power for five minutes.
Plug it back in, but dont turn it on.
- Press and hold down the  button on the numeric keypad, the [Energy Saver] and the [Stop] buttons
- 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.
- Release the buttons. The machine will continue its normal boot up procedure to initialize the spool disk.
To allow ports like webmin
firewall-cmd --permanent --zone=public --add-port=10000/tcp
firewall-cmd --reload Also to block firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='18.104.22.168/24' reject"
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
22.214.171.124.22 > 126.96.36.199.53996: Flags [P.], cksum 0xc3d6 (incorrect -> 0xd4eb), seq 7496:7592, ack 9003, win 559, length 96
ethtool -K eth0 rx off tx off sg off tso off ufo off gso off gro off lro off
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.
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: