Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
chmod error
#1
hi
I keep getting an error that I have to set chmod 777 to /data and /backups.
But there is the problem that those folder and its subfolders has the permissions yet.
And server user is the owner of all this folders and files...

What do?

Thanks in advance. Regards
Reply
#2
have you checked here if there any special instructions for your host?
http://get-simple.info/wiki/installation...webhosters

Also, to confirm, your cPanel username has ownership of the files?
Reply
#3
(2012-12-07, 06:26:59)shovenose Wrote: have you checked here if there any special instructions for your host?
http://get-simple.info/wiki/installation...webhosters

Also, to confirm, your cPanel username has ownership of the files?

If my cPanel username is 'admin' then all the files has to belong to 'admin'?

And no, there is no special instruction for my host...
Reply
#4
OK.
Reply
#5
So, /data and /backups and its subfolders is chmoded to 777, and the cPanel username is an owner of this folders, but I keep getting this error...
Anything else?
Reply
#6
what does health status say they are set to ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
(2012-12-07, 06:24:51)slawus Wrote: hi
I keep getting an error that I have to set chmod 777 to /data and /backups.
But there is the problem that those folder and its subfolders has the permissions yet.
And server user is the owner of all this folders and files...

What do?

Thanks in advance. Regards

At what stage do you get the error? Can you add a screenshot of the page showing the error?
Reply
#8
(2012-12-07, 06:24:51)slawus Wrote: I keep getting an error that I have to set chmod 777 to /data and /backups.
But there is the problem that those folder and its subfolders has the permissions yet.
And server user is the owner of all this folders and files...

What do?

I would bet it is the same problem I ran into:
http://get-simple.info/forums/showthread.php?tid=3912
Reply
#9
(2012-12-07, 06:24:51)slawus Wrote: hi
I keep getting an error that I have to set chmod 777 to /data and /backups.
But there is the problem that those folder and its subfolders has the permissions yet.
And server user is the owner of all this folders and files...

What do?

Thanks in advance. Regards

At what stage do you get the error? Can you add a screenshot of the page showing the error?
[/quote]

Sorry for not answering for a long time...
   

I can't even add any content via cPanel...

/admin and /backup and all it's subfolders are 777 and cPanel username is the owner of all files and folders...

(2012-12-12, 13:26:58)shawn_a Wrote: what does health status say they are set to ?

Health status say that .htaccess files in these folders do not exist:
/data/users/, /data/cache/, /data/pages/, /data/other/, /data/other/logs/...
Reply
#10
I got this error recently, it was because the install script did not create the users folder.
Revisit the install.php and see if it fixes it, ill have to figure out if we have an installer issue that randomly occurs or some kind of race condition with creating the folders and continueing on to setup.php

What version are you using ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#11
I'll try it later.
I'm using the newest one

EDIT:
Can't make install.php, got this error: Unable to continue: Unable to write the configuration file. CHMOD 755 or 777 the /data, /backups folders & sub-folders and retry.
Reply
#12
What version ?
3.1.2 ?

I reproduced this a few times but it is sporadic, so I am going with an error we are missing, or a race condition.

Ill keep testing.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#13
I made this... removed and reinstalled cms and it started to work correctly! thank you guys for your help!
Reply
#14
I uploaded an image via cPanel and the problem came back...
Now, user 'apache' is the owner of all the files made by cPanel ("username.xml.bak" for example) and I have no permission to chown them...

Health status says that some .htaccess files do not exist AGAIN ;/
Reply
#15
use ftp, obviouly your host has user issues. I have seen some hosts also take over files when doing restores or moving servers. Or just randomly as some kind of security issue I imagine. There really is no telling or fixing it if your owner is not the same as php.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#16
Have you try 755? Most of the cases should work for many share hosting providers.
Reply
#17
I had the same problem a couple of times by uploading the zip file through cpanel's file manager upload system and unzipping it with the cpanel tool. Never happened using FTP to upload already unzipped files.

Fixed with a chmod of all folders as 755 and files as 644 through FTP client.
Reply
#18
So, I'm having the same error during installation:
Code:
Unable to continue: Unable to write the configuration file. CHMOD 755 or 777 the /data, /backups folders & sub-folders and retry.
and i certainly have all of them chmoded properly (tried: 755/0755 and 777/0777, with different ftp managers)

using the GS 3.2.2 and hosting by nha.co.uk

this is far not the first my GS installation, and even with this hosting i have one website running, so i have no idea what could cause the problem this time ((
Reply
#19
omg.. still keep trying with all different ways to make it running: different ftp managers, zipping and unzipping GS on server, all different ways of chmodding folders, subfolders and files, tried even older versions of GS ((
Reply
#20
turn debugging on and see if you are getting a php chmod permissions denied error.
or check the error.log
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#21
Thank you for your answer!
So, i manually renamed and edited gscinfig.php to enable debug mode
I get this error list:
Code:
Warning: ini_set() [function.ini-set]: Unable to access /var/www/vhosts/.../httpdocs/data/other/logs/errorlog.txt in /var/www/vhosts/.../httpdocs/admin/inc/common.php on line 89

Warning: chmod() [function.chmod]: Operation not permitted in /var/www/vhosts/.../httpdocs/admin/install.php on line 42

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 10018 is not allowed to access /var/www/vhosts/.../httpdocs/data/cache owned by uid 48 in /var/www/vhosts/.../httpdocs/admin/install.php on line 43

Warning: copy(/var/www/vhosts/.../httpdocs/data/cache/tmp.tmp) [function.copy]: failed to open stream: No such file or directory in /var/www/vhosts/.../httpdocs/admin/install.php on line 43

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 10018 is not allowed to access /var/www/vhosts/.../httpdocs/data/cache owned by uid 48 in /var/www/vhosts/.../httpdocs/admin/install.php on line 47

Warning: copy(/var/www/vhosts/.../httpdocs/data/cache/tmp.tmp) [function.copy]: failed to open stream: No such file or directory in /var/www/vhosts/.../httpdocs/admin/install.php on line 47

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 10018 is not allowed to access /var/www/vhosts/.../httpdocs/data/other owned by uid 48 in /var/www/vhosts/.../httpdocs/admin/install.php on line 43

Warning: copy(/var/www/vhosts/.../httpdocs/data/other/tmp.tmp) [function.copy]: failed to open stream: No such file or directory in /var/www/vhosts/.../httpdocs/admin/install.php on line 43

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 10018 is not allowed to access /var/www/vhosts/.../httpdocs/data/other owned by uid 48 in /var/www/vhosts/.../httpdocs/admin/install.php on line 47

...

so, to my understanding the problem is with safe mode setting on the server. I don't have access to cpanel to edit it.. can you give me and advice how to make it running? Thank you!
Reply
#22
Sounds like you can maybe chown your files so they are owned by php.

http://php.net/manual/en/features.safe-m...ctions.php
copy() Checks whether the files or directories being operated upon have the same UID (owner) as the script that is being executed. Checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed. (on source and target)
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#23
aa.. well, thank you!
but i still need help.. how can i apply these functions and how then fix my problem? ((
Reply
#24
Anyway, I've got it working by creating whole website on localhost and then uploading it.. There error still appears, when i change settings in admin panel, but all applied settings are saved and pages can be edited/created without errors..
Reply
#25
This is beyond the scope of GS this is a system admin issue. perhaps upload your stuff via your cpanel.
Also mention your host, so others might be aware of this issue.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)