• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

hosting

PHP ini overriding

January 23, 2012 by Webhead

On shared hosts, overriding the php.ini file can be frustrating.  Sometimes it works, sometimes it doesn’t.  It’s up to the host provider.   This post will keep a record of what hosts need what type of requirements and will be updated from time to time.  This overriding php.ini file can be a partial override like so:

[PHP]
; Maximum size of POST data that PHP will accept.
post_max_size = 20M
; Maximum allowed size for uploaded files.
upload_max_filesize = 20M

 

GoDaddy

The php.ini file needs to be named php5.ini if you are using PHP version 5.x.  Sometimes you’ll need to restart the web process in the control panel.  It is located under the “System Processes” icon.   Once in System Processes click on “End Web”.

Filed Under: Server Stuff Tagged With: goDaddy, hosting, php

GoDaddy Password Protect Home Directory

August 2, 2011 by Webhead

Problem:

GoDaddy makes it simple to password protect a directory.  You just go to their file manager, click on a directory, click on Permissions, fill out a user and password and you’re done.  Bad thing is that you can’t password protect anything in the public root folder.

 

Solution:

Easiest solution is to password protect a subdirectory, open .htaccess, copy the code there and paste it into  your .htaccess in the root public folder and then wait a few hours.  Seriously, just wait.  I followed these steps and didn’t wait, got worried it wasn’t working and undid everything.  a few hours later I ran into this post:  http://www.besthostratings.com/articles/http-auth-php-cgi.html

With that post I felt that I could hackily get the authenticated username and password and then use PHP to determine whether the username/password is correct or not.  Then I could show or not show what I needed.  After all, this was only temporary until the client’s site went live.  I soon found out however that the first solution worked this time.  Go figure.

 

 

 

 

Filed Under: Server Stuff Tagged With: apache, goDaddy, hosting, htaccess

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2

Primary Sidebar

Topics

apache apple bootstrap buddypress chrome cloudways cms css debug drupal eCommerce firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery kinsta linux localization mac os x ms sql mysql open source optimize php php 7.2 svg tinymce woocommerce wordpress wpengine xss yii youtube

Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools
  • Uncategorized