Safdar Mirza @ Cloud

PHP has several configuration options to limit resources consumed by scripts. By default, PHP is set to allow uploads of files with a size of 2MB or less.

Try to increase limit by using .htacces file. 

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

 

Try increasing the following values in php.ini, for example:


memory_limit = 32M
upload_max_filesize = 24M
post_max_size = 32M

 

http://www.htaccesstools.com/

 

https://httpd.apache.org/docs/2.4/programs/htpasswd.html

https://www.web2generators.com/

 

https://www.thesitewizard.com/sitepromotion/index.shtml

Bash Profile:

https://natelandau.com/my-mac-osx-bash_profile/

 

The .htaccess Code

AuthType Basic
AuthName "restricted area"
AuthUserFile /home/davidwalsh/html/protect-me-dir/.htpasswd
require valid-user

The .htpasswd Code

davidwalsh:daWHfZrDLB88.
rodstewart:roFulYxC2.8ws
cssexpert:csmnmq.M8T5ho

Generate md5sum hash/password

 echo -n "test" |md5sum

 

 

 

Elements of the Mac OS X desktop and Finder, and their Windows Explorer equivalents

Here is a sample Mac desktop and Finder window (in Cover Flow view mode), labeled so we can compare it to Windows. Some of the following Mac OS X features may not be available in Windows.

  1. Apple () menu - Similar to the Start menu in Windows; used to access functions such as Software Update (equivalent to Windows Update), System Preferences (equivalent to Control Panel), Sleep, Log Out, and Shut Down.
  2. Menu bar - This is always at the top of your screen. It contains the Apple menu, active application menu, menu bar extras and the Spotlight icon. The Finder menu has items such as Finder Preferences, Services, and Secure Empty Trash.
  3. Finder window close, minimize and zoom buttons–just like in Windows but on the left. Note: Closing all application windows in Mac OS X does not always quit the application as it does in Windows. In Mac OS X every application menu has a Quit option that can also be invoked by using the Command-Q key combination.
  4. Finder window View buttons Equivalent to the options contained in the View menu of Windows Explorer.
    • Icon view - Similar to Windows Icons view mode, used to display the contents of your folder as a series of icons. Also you can "hover" over icons for multipage documents or QuickTime movies to get a thumb nail preview of its content.
    • List view - Similar to Windows Details view mode, used to display your folder in a spreadsheet-style manner. Each folder can be expanded by clicking on the disclosure triangle just to the left of the folder. You can easily sort by file name, date modified, and so forth. Choose Show View Options from the View menu to add / remove attribute columns. You can change the sorting from ascending order to descending order and back again by clicking on the attribute column title.
    • Column view - Used to display the hierarchy of your hard disk where each column represents a folder.
    • Cover Flow view - Used to display the contents of your folder just like the Cover Flow used in iTunes. You can see live previews of images, documents, and movies, and can thumb through documents and movies.
  5. Action Menu - Similar to right clicking an item in Windows Explorer, it will give you quick access to Finder functions for highlighted items, such as Get Info, Quick Look, Move to Trash, and Services.
  6. Item Arrangement - Similar to Group By, Stack By in Windows Explorer, it will group the items in a folder by a certain criteria, such as Name, Kind, Application, Date Last Opened, Date Added, and more.
  7. Search Field - Similar to Windows Search, start typing a word or phrase and Spotlight will search your Mac for any matches.
  8. Spotlight icon - Similar to Windows Search, click it to bring up the Spotlight search field, where you can search for anything on your Mac.
  9. Back / Forward buttons - Just like in Windows Explorer, as you move to different places in the Finder window, you can use the back button to return one step back and the forward button to go forward.
  10. Sidebar - Similar to the Task Pane in Windows Explorer, items are grouped into categories: Favorites, Shared, and Devices. The Favorites section contains quick access to your desktop, Applications, downloads, and Documents. The Shared and Devices sections display whatever is connected to your Mac, such as a hard disk, iDisk, network share points, an SD memory card, or DVDs.
  11. Cover Flow content - Shows you a live preview of your files, where you can page through a document or watch a QuickTime movie.
  12. The Finder application icon -  Similar to Windows Explorer, click it to bring the Finder to the foreground or open a Finder window if none are already opened.
  13. The Dock - Similar to the Windows Taskbar, it has quick access to the Finder and your most frequently used applications, folders, and files. With a single click the application, folder, or file opens.
  14. Trash - Similar to the Recycle Bin, deleted items are kept here until you empty the Trash. You can also eject DVD's, SD memory cards, or external drives connected to your Mac by dragging them to the trash (discs will physically eject when you do this, other devices can be disconnected after doing this).

Homebrew is the most popular package manager for Mac OS X. Homebrew Cask extends Homebrew with support for quickly installing Mac applications like Google Chrome, VLC, and more. No more dragging and dropping applications!

Homebrew is a package manager designed for installing UNIX tools and other open-source applications on Mac OS X. It will quickly download and install them, compiling them from source. Homebrew Cask extends Homebrew with support for installing binary apps — the kind you normally drag to your Applications folder from DMG files.

Install Homebrew and Homebrew Cask
First, you’ll need the command-line tools for Xcode installed. On a modern Mac OS X system, you can install these just by running the following command in a Terminal window. You could also install the full Xcode application from Apple, if you prefer — but that takes up more space on your Mac and isn’t necessary.

xcode-select --install

Next, install Homebrew. You can just open a Terminal window, copy-paste the following command, and press Enter:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

This script informs you what it will do. Press Enter and then provide your password to install it. By default, it installs Homebrew so you can use the brew command without typing the sudo command and providing your password.

Run the following command once you’re done to ensure Homebrew is installed and working properly:

UPDATE: The below command is no longer necessary. Homebrew Cask is now automatically installed as part of Homebrew itself.

Once you’re done, run the following command to install Homebrew Cask. It uses Homebrew to install Cask:

brew install caskroom/cask/brew-cask

Install Graphical Apps With Homebrew Cask
Now you can get started installing those graphical apps you want. This involves some very simple commands. To search for one, use the following command:

brew cask search name


To install an app, run the following command. Homebrew Cask will automatically download it, extract the app, and install it to your Applications folder.

brew cask install name

To uninstall an app with Homebrew Cask, run the following command:

brew cask uninstall name

Install Open-source Utilities With Homebrew


The Homebrew command is the underlying package manager that installs all those UNIX and open-source utilities you might want. It’s the easiest way to install them on Mac OS X, just as it is on Linux. Like Homebrew Cask, it uses simple commands.

To search for a utility:

brew search name

To download and install that package:

brew install name


To remove that package from your system later:

brew remove name

Install wget:
brew install wget

For more details on using these commands, read the Homebrew Cask Usage guide or the Homebrew brew command manual on their official websites. Not every graphical application or Unix utility you’re looking for will be available, but most of them probably will be.

https://github.com/caskroom/homebrew-cask/blob/master/USAGE.md
https://docs.brew.sh/Manpage
https://docs.brew.sh/
https://docs.brew.sh/Installation
https://brew.sh/