Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Till Klampaeckel's Blog:
How to setup multiple stores on different domains with Magento
Apr 29, 2009 @ 17:05:11

On Till Klampaeckel's blog this recent post shows you how to (quick and easy) set up multiple Magento stores on different domains with the same codebase.

Multiple stores is probably the killer feature of the Magento Commerce store. It enables the needy to manage multiple stores through a single interface. Your very own mall in a box. It's also a management/deployment nightmaredream come true. A single piece of software powering multiple websites.

He sets up his directory structure and shows how to alias certain directories to ones in the local document root so that the application will find things correctly. Drop in a custom index.php "bootstrap" file to run the application and you should be all set.

tagged: multiple store magento domain docroot alias bootstrap

Link:

Lorenzo Alberton's Blog:
Zend Framework, mod_rewrite and public dir in shared hosting
Feb 16, 2009 @ 17:16:06

Lorenzo Alberton has a quick tip for those dealing with Zend Framework applications and shared hosting:

The public directory contains all the files that should be directly accessible via the web server, so you must set your web server's document root to this directory. The problem is, in most shared hosting setups you can't change the document root. [...] To solve this problem without changing the above directory structure, you can remove the .htaccess file from the public directory, and place this one in the root directory instead.

His new .htaccess file makes use of the mod_rewrite Apache extension to force everything back into the bootstrap file for your application. You can find out more about setting up a Zend Framework application in their QuickStart guide.

tagged: shared hosting zendframework application tutorial htaccess docroot

Link:

Total PHP:
Choosing a PHP Web Host
Sep 22, 2008 @ 16:19:54

The Total PHP site has a few suggestions for you to look at before choosing your next web host - five of them:

  • PHP 4 or 5? - if you haven't made the switch to PHP5, there's no better time
  • Linux/Apache - Windows is largely an ASP.NET platform
  • Access to outside the document root - it can be very useful for templates, config files and the like
  • Scripting requirements - be sure anything you might need for an outside application (like WordPress) is there
  • General advice

There's a bit more detail on each of the points to round out the advice.

tagged: choose web hosting php5 php4 linux apache docroot requirement

Link:


Trending Topics: