[SOLVED] joomla primation

General support questions
sayres
Posts: 93
Joined: 2011/06/25 16:05:45
Location: Iran/Karaj

[SOLVED] joomla primation

Post by sayres » 2011/08/01 11:38:47

i want install component and themplate in joomla.
my doucument root is /var/www/html.
but when i install theme encounter with this massage :
[code] * Warning! Failed to move file.[/code]

what can i do???what primition my document root?
[code]

[sayres@centos ~]$ ls -l /var/www/html
total 8
-rw-rw-r--. 1 root sayres 20 Aug 1 17:09 info.php
drw-r-xr-x. 16 root sayres 4096 Aug 2 03:44 Joomla
[sayres@centos ~]$



[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] joomla primation

Post by pschaff » 2011/08/01 15:49:00

There seems to be a language issue here. Please try again to ask your question. None of " themplate", "primation", and "primition" are recognizable English words. Template? Partition?

Is this related to your [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32491&forum=55&post_id=139059#forumpost139059]last thread[/url]?

It might help if you told us exactly what you are trying to install, and by what method.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: joomla primation

Post by TrevorH » 2011/08/01 16:24:41

But it's probably down to the fact that the ownership of the Joomla directory only allows root to write to it and anyone to read it.

sayres
Posts: 93
Joined: 2011/06/25 16:05:45
Location: Iran/Karaj

Re: joomla primation

Post by sayres » 2011/08/01 19:24:12

I want to install a Joomla Template.
But during installation I encountered with this message:

[img align=right]http://www.upload98.com/images/fwjwz1oaytjb68vzti.png[/img]

This message is sure to permissions folders root directory.
What should I change folder permissions that I can do Tmplath Joomla extensions and Joomla install?

my root directory is:
[code]
[sayres@centos ~]$ ls -l /var/www/html
total 8
-rw-rw-r--. 1 root sayres 20 Aug 1 17:09 info.php
drw-r-xr-x. 16 root sayres 4096 Aug 2 03:44 Joomla
[sayres@centos ~]$


[/code]

I hope you understand.

Sorry. My English is very bad.

sayres
Posts: 93
Joined: 2011/06/25 16:05:45
Location: Iran/Karaj

Re: joomla permission

Post by sayres » 2011/08/01 20:44:49

I found this:
http://ignoresysprereqs.blogspot.com/2011/03/joomla-warning-failed-to-move-file.html

I am using this command:
[code]
for i in 'find . -type d'; do sudo chmod 770 $i; sudo chgrp nogroup $i; done

[/code]
I get this message?

[code]
[root@centos html]# for i in 'find . -type d'; do sudo chmod 770 $i; sudo chgrp nogroup $i; done
chmod: invalid mode: `-type'
Try `chmod --help' for more information.
chgrp: invalid option -- 't'
Try `chgrp --help' for more information.
[root@centos html]#

[/code]
Why?

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: joomla permission

Post by TrevorH » 2011/08/01 21:45:29

Oh the dangers of copying stuff off the internet when you have no idea what it does!

The quotes you have used in your command are the wrong sort - they should be backticks which on a UK keyboard is the top lefthand key on the main block of keys. What you used were single quotes.

It also is not going to fix your problem. The current permissions on the Joomla directory give write access only to the owner of the directory - which is currently root. The group which owns it only has read and execute permission. Your command sort of almost fixes this by adding group write permission but the Apache process on Centos runs under userid 'apache' which is a member of group apache only. So to fix the permissions correctly you would need to change 'nogroup' to 'apache' as well as fixing the backtick problem.

sayres
Posts: 93
Joined: 2011/06/25 16:05:45
Location: Iran/Karaj

Re: joomla permission

Post by sayres » 2011/08/01 22:05:08

What I do now?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: joomla permission

Post by pschaff » 2011/08/02 16:48:57

What Trevor said.

sayres
Posts: 93
Joined: 2011/06/25 16:05:45
Location: Iran/Karaj

Re: joomla permission

Post by sayres » 2011/08/02 20:33:33

Sorry. I'm good purpose did not catch Trevor.
Will explain with examples? :-?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: joomla permission

Post by pschaff » 2011/08/02 21:06:16

First [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]becoming root[/url], specifying the directory explicitly, using a syntax variant to avoid confusion between ` and ' , and also taking care of files:[code]for i in $(find /var/www/html -type d); do chmod 770 $i; chgrp apache $i; done
for i in $(find /var/www/html -type f); do chmod 660 $i; chgrp apache $i; done[/code]

Post Reply