Solved

JOOMLA : JFolder::create: Could not create directory  JInstaller::install: Failed to create directory while loading a template

Posted on 2011-02-10
10
2,869 Views
Last Modified: 2012-08-13
Joomla Version: Joomla! 1.5.22 Stable
Operating System: Linux CENTOS 5.x
PHP:   5.1.6
MySQL Database:   5.0.77
Web Server: Apache/2.2.3

I was able to successfully install Joomla and and am able to view both the web site and admin interface using the default templates that come with Joomla.

While loading a new template, I get the following error message:
JFolder::create: Could not create directory  JInstaller::install: Failed to create directory while loading a template

Action Items done at my end so far:
- Searched and reviewed the various postings on this topic
- Set the appropriate directory permissions
- Specified open_basedir=/var/www/html   in php.ini and restarted apache

Still getting these error messages.
Please advise.
Thanks
0
Comment
Question by:caliea
  • 5
  • 5
10 Comments
 
LVL 11

Expert Comment

by:Amanda Watson
ID: 34865109
Hi There,
It could be that you have the tmp folder not set properly
Changed the temporary path to /tmp under global config
A
0
 

Author Comment

by:caliea
ID: 34865577
Hi,
  The path to temp folder in global config is currently set as follows:
    /var/www/html/flame/tmp

Please let me know if this needs to be changed.
0
 
LVL 11

Expert Comment

by:Amanda Watson
ID: 34866353
is you joomla site in the flame directory?

Is the tmp folder set to chmod 777
0
 

Author Comment

by:caliea
ID: 34866570

Yes, the joomla site is in the flame directory.
One can access it at http://216.179.19.253/flame
The tmp folder (/var/www/html/flame/tmp) is set to chmod 777
0
 
LVL 11

Expert Comment

by:Amanda Watson
ID: 34866784
Can you try enabling the FTP layer and then attempting again.

Your host may have restrictions on  uploading zip files so you may need to do a manual install
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:caliea
ID: 34867542

On the Joomla linux server, I started the ftp server.
To confirm access via ftp, from a client machine, I was successfully able to log in using FileZilla.

On the Joomla Linux server, in Admin - Global Config - FTP Settings, I made the following entries:
Enable ftp: Yes
FTP host: localhost
FTP port: 21
username/pw

When I apply the setting, I get the following messages:
FTP::connect: Could not connect to host "localhost" on port 21
Could not make configuration.php writable
(I tried 127.0.0.1 and 216.179.19.253 as well instead of localhost)

If I set Enable-ftp to No, then I do not get the above messages and the config is saved

0
 
LVL 11

Expert Comment

by:Amanda Watson
ID: 34867809
You need to make your configuration.php file editable, so change its file permissions to 777, then try again
0
 

Author Comment

by:caliea
ID: 34867940
chmod 777 had already been done on configuration.php.
Confirmed that it is editable by changing path to temp folder (did this for testing, then reverted back to the desired value) and the updated value is stored in configuration. php.

Also, tried the following :
- Unzipped the new template on local system
- ftped the unzipped files to joomla server folder /var/www/html/flame/tmp
- In joomla admin interface, went to Extensions-Install/Uninstall - Install directory: /var/www/html/flame/tmp
  Clicked on install .Get the following message:
   An error has occurred - unable to create target folder
    I do see the folder com_rocketthemecrystallinetemplateforjoomlabundle folder created in
     /var/www/html/flame/components and in /var/www/html/flame/administrator/components

   The owner of the com_rocketthemecrystallinetemplateforjoomlabundle folder is apache.
    I am using the root as the user and all other folders belong to root.
   
   

   
0
 
LVL 11

Accepted Solution

by:
Amanda Watson earned 500 total points
ID: 34868164
hmm, so you are getting a message saying that you cannot create the folder, but the folder was created?

I think the problem then could be something to do with your server settings.  

You have to change the owner of the folders to the user of the apache server...this is a tricky thing to acomplish and to be honest I always contact the server to help with this.

Sorry I cannot be more helpful
0
 

Author Comment

by:caliea
ID: 34868298

Your suggestion in the box above has worked. Changing the owner of the folders to the user of the apache server has resolved the problem that I was having.

  Thankyou for providing the solution.
 
 
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Post form to two locations 1 30
php email 2 26
Is this error or Notice in php error log? 6 32
Configuring a checkbox in CSS and php 18 22
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now