How To Increase PHP File Upload Limit on CentOS 7

How To Increase PHP File Upload Limit on CentOS 7 with one line of bash.

SSH into your server as root and execute the following command:

replace "upload_max_filesize = 2M" "upload_max_filesize = 20M" -- /etc/php.ini && service httpd restart

That will replace your 2mb upload limit with a 20mb upload limit and it will restart the web server so changes to php.ini are made:


P.S. you can verify your new maximum PHP file upload size is by executing:

grep upload_max_filesize /etc/php.ini

Sample output:

upload_max_filesize = 20M

Universal way to increase PHP Upload Limit:

SSH into your server as root. Use vi or nano to edit the php.ini file:

vi /etc/php.ini

Press / and type upload_max
(Pressing backslash (/) allows you to search a file while editing with Vi)

You should see:

upload_max_filesize = 2M

Press i and change that value to 20M
(Pressing “i” allows you to insert type in characters while editing with Vi)

upload_max_filesize = 20M

To exit Vi, press Esc and type


and hit enter.

Now either


your server or restart httpd:

service httpd restart

Your PHP upload limit is now 20mb.

Brightness Keys Not Working Debian: Xfce Function F5 & F6 Fix

All the other Fn + F1 thru F12 keys were working except for Fn + F5 & Fn + F6.

Open keyboard settings and find Application Shortcuts.

Add a new shortcut with the following command:

Reduce brightness by 10%:

xbacklight -10

I used the keyboard shortcode Alt + (-), meaning the minus key on my numpad.

Increase brightness by 10%:

xbacklight +10

I used the keyboard shortcode Alt + (+), meaning the plus key on my numpad.

My laptop keyboard has a number pad so this is pretty comfortable, but if you don’t have a numpad, you’ll need to choose a different unused combination.

WARNING: Don’t try and set the keyboard as Alt F4 and Alt F5 because are already bound to “close the window”…

My Hotkey & Keyboard Shortcut Setup Linux




Left Windows Key

Opens Application Finder so you can type in the first few letters of any application and hit enter.




Crtl + Alt + G

Super fast calculator opening



Crtl + Alt + Y

Open a new text file

To be continued…

WiFi Network Not Showing Up Linux: Personal Hotspot Not Listed Debian/Ubuntu

I was using a small MiFi router for a while and when I would come back inside, more often than not the network would not be found again even though I was sitting right next to my computer.

The same would happen with iPhone Hostpot Wifi not showing up even though it was right next to me. If the WiFi disconnects and can’t be found again for a few minutes, the fastest way to jump start the WiFi network list is below.

A solution to hard reset the WiFi network list on Debian, Ubuntu, Mint or other distros is as follows:

sudo service network-manager restart

This command will restart network manager and force search for nearby WiFi networks.

However, instead of typing this in each time I came back inside or turned on iPhone personal hotspot, I made a launcher icon that would hard refresh the list of available networks and in turn, be able to connect to my WiFi again.

Go to the desktop, right click and create a new launcher.

Name the launcher WiFi Restart and put the command the same as the command above.

WiFi Network Manager Reset Xfce Debian Ubuntu

Save this launcher, and then drag it onto your launcher area.

Now, when your WiFi disconencts or your personal hotspot isn’t being found, just press the WiFi restart button and your network will show up again in a matter of seconds.

The icon I use is network-wireless-offline-symbolic in Status Icons.

WiFi disconnects and can't be found again icon



Ctrl + Click Not Opening Links In New Tab Fix: Middle Click Without Mouse Debian/Ubuntu

Some javascript based websites were hogging my click actions and opening links that I wanted to open in new tabs in the same window/tab.

Since I prefer using the track-pad now, I wanted a fast solution to either middle mouse click on links to open in new windows or a way to rapidly right click, open in new tab.

An awesome solution I am currently using is as follows:

xdotool is a fake keyboard & mouse input program that you can emulate clicks via the terminal.

sudo apt-get install xdotool

Open keyboard settings and find Application Shortcuts.

Add new shortcut with the following command:

xdotool click 2

For the keys, I chose:

Left Crtl + Windows key (<Primary>Super_L)

Now, when I want to open links in a new tab, I simply move my mouse and hover over links and while holding left Ctrl, I tap the left Windows key.

It’s actually much faster than middle clicking and it allows me to rapidly tap the windows key while hovering over a page full of links.


Fn + F10 Mute Toggle Not Unmuting Sound After Muting: Turning On PulseAudio Again Fix Debian

I read a few different solutions for fixing the sound toggle on Debian via the command line but the only solution that I could make a keyboard shortcut for was:

Hard unmute Pulse Audio in Debian, Xfce when the sound won’t come back on after muting:

pactl set-sink-mute 0 toggle

To set this as a keyboard shortcut

Open keyboard settings and find Application Shortcuts.

Add new shortcut with the following command:

This was a temporary fix and I will change it to Fn & F10 once I learn how to change the Fn hardcoded keys.