Hi all,
I'm new to CMSMS. I recently moved my working website from a shared sever to a dedicated virtual server(Apache). Ever since a few minor issues keep cropping up.
The most common one is to do with the modules: all of them are listed with "change permission" link and "cannot remove" warning. I read about it in the forum here and it was suggested that permissions for folders/subfolders and files must be changed to 777. I could do that but am just wondering whether this pose a security risk. I tried installing some of the modules but it did not seem to work.
The other issues is with error warnings such as on:
Frontend User Management "user properties" tab:
Notice: Undefined index: varchar in /var/www/vhosts/dicksontesting.com/httpdocs/modules/FrontEndUsers/function.admin_propertiestab.php on line 55
Notice: Undefined index: varchar in /var/www/vhosts/dicksontesting.com/httpdocs/modules/FrontEndUsers/function.admin_propertiestab.php on line 55
Notice: Undefined index: varchar in /var/www/vhosts/dicksontesting.com/httpdocs/modules/FrontEndUsers/function.admin_propertiestab.php on line 55
Notice: Undefined index: varchar in /var/www/vhosts/dicksontesting.com/httpdocs/modules/FrontEndUsers/function.admin_propertiestab.php on line 55
Notice: Undefined index: varchar in /var/www/vhosts/dicksontesting.com/httpdocs/modules/FrontEndUsers/function.admin_propertiestab.php on line 55
Form Builder "upload file" field:
Notice: Undefined variable: adv in /var/www/vhosts/dicksontesting.com/httpdocs/modules/FormBuilder/classes/FileUploadField.class.php on line 99
I searched the forum for this particular problem but could not find any posts. Has anybody experienced similar issues and found solutions to them? Any help will be greatly appreciated.
I'm using the latest 1.2 version of CMSMS. Thanks to CMSMS team for the great tool and a very helpful support community.
Zack
Changed servers - premissions and "undefined variable issues"
Changed servers - premissions and "undefined variable issues"
Last edited by Zack on Fri Nov 16, 2007 7:51 pm, edited 1 time in total.
Re: Changed servers - premissions and "undefined variable issues"
how did you 'move' your site? ftp client?
Re: Changed servers - premissions and "undefined variable issues"
php must have write access to the ./modules directory and the directories & files that make up added (third-party) modules in order to use ModuleManager to install/remove modules. in your case, php is probably running as the webserver user.Zack wrote: The most common one is to do with the modules: all of them are listed with "change permission" link and "cannot remove" warning. I read about it in the forum here and it was suggested that permissions for folders/subfolders and files must be changed to 777. I could do that but am just wondering whether this pose a security risk. I tried installing some of the modules but it did not seem to work.
it sounds like you copied the site using FTP, which then assigns ownership of uploaded files and created directories to the user account, not the webserver... and unless you make those directories and files world-writable, ModuleManager won't do a thing with them except complain about permissions. if you've got root access to the server, you could chown the third-party module files and directories to the webserver user instead.
and yes, anytime you make anything world-writable, it can be an added security risk... that is reduced somewhat if you're running in a dedicated (or in your case, isolated) environment... you don't have hundreds or thousands of other users on the same server that you have to worry about.. and wonder if they're running updated, secured applications or if they are perhaps hax0rs themselves...
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Re: Changed servers - premissions and "undefined variable issues"
Thanks Kermit for your detailed reply. Yes, I FTPed the files. I've root access to the server and I'll try making changes as you suggest.
I've a further question: What is the alternative to FTPing files when you move servers? Is there a way we can move cmsms sites without creating the modules permission issue.
thanks once again.
Zack
I've a further question: What is the alternative to FTPing files when you move servers? Is there a way we can move cmsms sites without creating the modules permission issue.
thanks once again.
Zack
-
Pierre M.
Re: Changed servers - premissions and "undefined variable issues"
Hello Zack,
-backup database and files. And may be some settings as well.
-restore the database at the new location.
-prepare the new location as usual with chmod etc
-run the installer without checking the box for creating database objects (hence using the existing one).
-and run optional modules install.
Hopefully all will be done by the webserver (under its permissions) and not the FTP tool.
Pierre M.
Try this :Zack wrote: What is the alternative to FTPing files when you move servers? Is there a way we can move cmsms sites without creating the modules permission issue.
-backup database and files. And may be some settings as well.
-restore the database at the new location.
-prepare the new location as usual with chmod etc
-run the installer without checking the box for creating database objects (hence using the existing one).
-and run optional modules install.
Hopefully all will be done by the webserver (under its permissions) and not the FTP tool.
Pierre M.
Re: Changed servers - premissions and "undefined variable issues"
it's not a 'moving servers' issue; it's simply a file permissions issue.. and it doesn't matter if it's a new install or a migrated one.Zack wrote: Thanks Kermit for your detailed reply. Yes, I FTPed the files. I've root access to the server and I'll try making changes as you suggest.
I've a further question: What is the alternative to FTPing files when you move servers? Is there a way we can move cmsms sites without creating the modules permission issue.
whoever (or whatever) is maintaining the files (adding, deleting, etc) must have write access to them... depending upon server configuration, that could be only your user account (e.g. php/cgi runs as your user) or both webserver and your user account (e.g. mod_php runs as webserver). a bit more detailed explanation is under 'file permissions' heading of this post (a cpanel 11 migration checklist i whipped up).
personally, i 'get around' the problem by running php5 as cgi, which runs as the user account. files which need to be writable by cmsms and readable by apache need no higher than 604 (705 for their directories) permissions; and config.php can be 600 or 400.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Re: Changed servers - premissions and "undefined variable issues"
Pierre, kermit
I'll try your suggestions and report here how it goes.
Thanks for you responses. Much appreciated.
I'll try your suggestions and report here how it goes.
Thanks for you responses. Much appreciated.

