Joomla Tutorials

mag-glass

Question: How can I preview a Joomla Article before publishing it ?

 multiple-categories-image

Question: Can I assign Joomla Articles to multiple Categories?

Answer: No, but there are some options to consider....

lock
For Joomla 3.x the process is the same as for Joomla 2.5 except that DS is replaced by actual directory separator.

define( 'JPATH_CONFIGURATION', JPATH_ROOT.DS.'..'.DS.'sitename' );
becomes
define( 'JPATH_CONFIGURATION', JPATH_ROOT.'/../sitename' );


 

Question: How can I protect my Joomla 3.x configuration.php file from possibly being viewed due to server misconfiguration?

Answer: Move it to the |Home directory (above public_html directory) which can only be accessed via FTP or CPanel File Manager.

 Pros: configuration.php will be better protected and your site will be more secure.

Cons: No longer possible to edit configuration.php via Global Configuration in Joomla Administrator. The file must be manually edited.

Step 1: Move configuration.php from the public_html directory (folder) to the Home directory above using FTP or CPanel File Manager.

Tip: If you have more than one Joomla site involved make a folder for the file to keep it separate otherwise it could be overwritten. eg:(/home/cpanelusername/sitename/configuration.php)

 Step 2:  Edit the files that contain the path to configuration.php.
[joomla root]/includes/defines.php
[joomla root]/administrator/includes/defines.php

This is the constant to modify
define( 'JPATH_CONFIGURATION', JPATH_ROOT );

For example if Joomla is installed in the public_html folder (web root) then to move the file up one level into the Home directory and into a folder named "sitename" the constant will look like this:
define( 'JPATH_CONFIGURATION', JPATH_ROOT.'/../sitename' );

lock
Question
: How can I protect my Joomla 2.5 configuration.php file from possibly being viewed due to server misconfiguration?

Answer: Move it to the |Home directory (above public_html directory) which can only be accessed via FTP or CPanel File Manager.

 Pros: configuration.php will be better protected and your site will be more secure.

Cons: No longer possible to edit configuration.php via Global Configuration in Joomla Administrator. The file must be manually edited.

Step 1: Move configuration.php from the public_html directory (folder) to the Home directory above using FTP or CPanel File Manager.

Tip: If you have more than one Joomla site involved make a folder for the file to keep it separate otherwise it could be overwritten. eg:(/home/cpanelusername/sitename/configuration.php)

 Step 2:  Edit the files that contain the path to configuration.php.
[joomla root]/includes/defines.php
[joomla root]/administrator/includes/defines.php

This is the constant to modify
define( 'JPATH_CONFIGURATION', JPATH_ROOT );

For example if Joomla is installed in the public_html folder (web root) then to move the file up one level into the Home directory and into a folder named "sitename" the constant will look like this:
define( 'JPATH_CONFIGURATION', JPATH_ROOT.DS.'..'.DS.'sitename' );

The DS = / on Linux and \ on Windows. ../ or ..\ moves up a directory level.

The Joomla 3.x method for hiding configuration.php is similar, but slightly different.

This is a problem with Joomla 3.2.3 only.

No action need be taken.
This will be fixed in next release.

If you want to fix this edit the entry `version_id` in the table #__schemas from 3.2.3-2014-02-20 to 3.2.3. (only recommended for experts).

php53 logo

If you get this message after installing Joomla 3.x ,
"Your host needs to use PHP 5.3.1 or higher to run this version of Joomla",
|PHP 5.3 needs to be enabled.

On our servers PHP 5.3 can be enabled by putting this directive at the top of the .htaccess file in Joomla root.

AddType application/x-httpd-php53 .php

proudly-canadian-flag.gif
Best Canadian Web Host for Joomla



Joomla Web Hosting Canada RSS Feed