A desperate story about file permissions and ownership

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: A desperate story about file permissions and ownership

Post by calguy1000 »

1) The DBBackup module doesn't work with a virgin install of the 1.x series because adodb_lite comes by default, and the DBBackup module requires the full version of adodb.

2) Check your httpd error logs (if you don't know how to find them talk to your hosting provider) and see if there are any php errors (I'll bet, like nullg said that you've got some memory errors

OR

with all of the chmods and umask settings you've done, you've messed up the permissions.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
alby

Re: A desperate story about file permissions and ownership

Post by alby »

chechogr wrote: The backup module doesnt make the backup. Why do I notice this?
calguy1000 wrote: The DBBackup module doesn't work with a virgin install of the 1.x series because adodb_lite comes by default, and the DBBackup module requires the full version of adodb.
I don't use Backup module but this version would have work

EDIT: sorry I forgot the link

Alby
Last edited by alby on Sat Sep 15, 2007 8:36 am, edited 1 time in total.
Pierre M.

Re: A desperate story about file permissions and ownership

Post by Pierre M. »

Hello, sorry for this savage post, I haven't read all the thread :
Could it be a firewalling issue ? Does the host allow outgoing SOAP or so connections ?
Sorry if this is unrelated.

Pierre M.
alby

Re: A desperate story about file permissions and ownership

Post by alby »

chechogr wrote: i Changed ownership of the backup file through SSH to apache, and now when I try to recover the backup in the new server I get a text that says:

Restoring database...

But it doesnt restore.

I am kind of loosing hope.  :'(
Module Backup is not compatible with 1.1.X  :-\

Install CMSMS 1.08 in localhost (XAMPP, WAMP, ....)
Install Module Backup
Restore your backup
Update your localhost to same version of your server
Check
Backup your server
Import SQL on your server

Alby
alby

Re: A desperate story about file permissions and ownership

Post by alby »

chechogr wrote:
alby wrote:
Module Backup is not compatible with 1.1.X  :-\

Install CMSMS 1.08 in localhost (XAMPP, WAMP, ....)
Install Module Backup
Restore your backup
Update your localhost to same version of your server
Check
Backup your server
Import SQL on your server
I am trying backup module in CMSMS version 1.0.4
Ok, substitute my above row from 1.08 to 1.04  :)

Alby
alby

Re: A desperate story about file permissions and ownership

Post by alby »

chechogr wrote: I have tryied everything
can believe after 1 year of useing CMSMS I am going to have to stop using it.
I tryied changing ownership and permissions of files.
Loading backup on old server to new server
loading mysql dump from old server to new server
copying the files of the installation from the old server to new server and loading backup
installing version 1.1.2
installing version 1.0.4

I just couldnt do it, couldnt load backup of my old site
Stopped and rewind ...

Old server: CMSMS 1.04 + Backup module
New server: CMSMS 1.1.2

1. Have you, on old server, a phpMyAdmin or other program for mysql dump?
  - yes: export/save sql dump of your old server on your local computer
  - no:
    I. option: download and install in subfolder (of old server) phpMyAdmin, configure and export/save sql dump of your old server on your local computer
    II. option (my opinion is better because you have an develop/test environment):
      - install in your local computer an portable distribution (Apache+PHP+MySQL+phpMyAdmin), p.e. XAMPP
      - install CMSMS 1.04 + Backup module on your local computer
      - restore your backup (relative to old server) with Backup module on your local computer
      - export/save sql dump of local computer

2. Install on new server CMSMS 1.1.2 with default template/configuration

3. Work well?
  - yes: continue
  - no: check permission, modules, errors, config.php, ...

4. Have you, on new server, a phpMyAdmin or other program for mysql dump/restore?
  - yes: DROP your tables on mysql of new server
  - no: download and install in subfolder phpMyAdmin and configure

5. import sql dump

6. update CMSMS (link in admin area) or read here

I don't know if it's all clear

Alby
Last edited by alby on Thu Sep 20, 2007 8:15 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: A desperate story about file permissions and ownership

Post by calguy1000 »

I've never seen modules 'uninstall themselves' before.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
maniacjeroen
New Member
New Member
Posts: 5
Joined: Wed Nov 07, 2007 10:42 am

Re: A desperate story about file permissions and ownership

Post by maniacjeroen »

HuttonIT wrote: The problem for people like myself and the greater majority of us out here is that we never get root privileges on our hosted servers and as pointed out you can FTP stuff to your site and the owner is your FTP user name but when CMS or any PHP system creates a file on the fly the owner is the server.  In my case that is always Apache.
The solution I found is a file called Webadmin.php (Written by Daniel Wacker but can't even remember where I found it) but it works very well and as it is PHP you can change anything on your site as when you run the php you are running it as the root account as php is running as root - but as a word of warning make sure you don't leave the file in a public access area or anyone finding it can do the same to your site.
Take the file below and change the file extension from .txt to .php.  Save it as whatever.php and upload it to your site.  then hit it with your browser www.whatever.com/whatever.php and you will be able to CHMOD create, edit, delete, move etc files on the site.  It is very simple to use but very dangerous to as once done it is done.....  Use it with caution and don't leave it for others to use on your site.
I hope this is useful and can solve some of your permission issues.
This work around helped me alot!!!

Thanks!
Pierre M.

Re: A desperate story about file permissions and ownership

Post by Pierre M. »

chechogr wrote: Where is the file webadmin.php ? ant find it.
FIRST hit with Google...
Charmie
Forum Members
Forum Members
Posts: 80
Joined: Tue Mar 03, 2009 3:32 pm

Re: A desperate story about file permissions and ownership

Post by Charmie »

Hi All,

Not sure if anyone can help.
I posted this in the wrong section so am trying this one.
Also this thread seems to be along the lines of what I am looking for.

I am really not sure what happened or if anyone can help...I am hoping they can.
I have crerated two portals, one for my Church and the other for my karate club.
On the CMS for my church I changed ownership of the modules folder using 'chown' in SSH using the command below:
'chown -R admin modules'

This was so I could make changes to the CalGuys calendar config file.
Unfortunately I changed ownership of all the modules to 'admin' and now I can not see my site when I browse to it.

I have no idea why this has happened as before I am sure some of the modules were owned  by 'web' and others by 'admin'.
I did not realise changing all the ownership of all the modules to 'admin' would do this.

I have attached an image of what my module ownership looks like now, is it possible for anyone to let me know where I went wrong...?
I have tried a blanket change ownership of all the modules to 'web' but this has not solved the problem and I fear I may have made it worse.

I am not sure of what my options are:
Is it possible to revert back to the old set-up?
If so how would I do this?

Also use the set-up of my karate club site, do you think it would work if I copy the ownership permissions of how that CMS is set-up for the church one?

If all else fails is there a way I can re-install the CMS and modules but not have to create the pages nor upload all the images?
Luckily I have made a back-up of all the templates and stylesheets.

I am getting quite desperate as this site was a page away from being finished and my deadline is next week. I would really hate to have to start over from scratch, so would love a simple or even possible solution.

I am using CMS 1.5.3
Apache v5.0
PHP 5.0

Charmie
Attachments
ModulesFolder_Snapshot.gif
Last edited by Charmie on Wed May 20, 2009 2:03 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”