Elxis CMS Forum

Support => Technical support => Topic started by: Dennis on October 23, 2009, 14:48:07

Title: After moving site I get error when accessing the site
Post by: Dennis on October 23, 2009, 14:48:07
Greetings

I followed the instruction on moving from sub and I get this errors when I try to access the site, including back end:

Quote
Warning: Cron file access error! Check permissions to write. in /home/ mysite/public_html/includes/floodblocker.class.php on line 201

Fatal error: Log file access error! Check permissions to write. in /home/mysite/public_html/includes/floodblocker.class.php on line 162

Line 162 is empty and in line 201 is this:

Quote
$this->ip_addr = $ip;

Something went wrong when I moved the site so the question is, how can I fix this?
(its not good as my site is down!)

Regards
Dennis
Title: Re: After moving site I get error when accessing the site
Post by: ks-net on October 23, 2009, 15:14:19
FloodBlocker configuration file is Writeable?
FloodBlocker logs directory is Writeable ?

look at administrator/tools/floodblocker/
Title: Re: After moving site I get error when accessing the site
Post by: Dennis on October 23, 2009, 15:41:25
The config file is writable but the directory was not, I have make it writable.

When I reload the page, I still get the same error, do I have to upload something again or?

Edit:

I cannot access admin as I get the same error!

Other solutions?
Title: Re: After moving site I get error when accessing the site
Post by: xmanhattan on October 23, 2009, 17:55:30
See this, it should help.  If not let us know again.

https://forum.elxis.org/index.php?topic=2479.0 (https://forum.elxis.org/index.php?topic=2479.0)

Title: Re: After moving site I get error when accessing the site
Post by: Dennis on October 23, 2009, 18:38:54
It helped but, the site is one mess and I get this error:

Quote
Error creating feed file, please make folder cache/ writable (permissions 777)

the folder was already writable?
Title: Re: After moving site I get error when accessing the site
Post by: ks-net on October 23, 2009, 19:42:29
i asked about two things

Quote
FloodBlocker configuration file is Writeable?
FloodBlocker logs directory is Writeable ?

look at administrator/tools/floodblocker/

cron files etc... will reside in logs dir...  it sould be 777

Title: Re: After moving site I get error when accessing the site
Post by: Dennis on October 23, 2009, 20:33:03
When I try to set permission in Cpanel for the log files I get this error in a pop up window:

Quote
FileOp Failure on: /home/mysite/public_html/administrator/tools/floodblocker/logs/-file No here: Operation not permitted
(“file No here” is for all the file names inside the log dir)

Can I delete this files or?
Title: Re: After moving site I get error when accessing the site
Post by: xmanhattan on October 23, 2009, 20:56:21
There is only one file in that directory, index.html, which should not be deleted.

The directory should be given the write permission.  The permission on your server may be either 775 or 777.
Title: Re: After moving site I get error when accessing the site
Post by: ks-net on October 23, 2009, 20:56:38
FileOp Failure on: /home/mysite/public_html/administrator/tools/floodblocker/logs/-file

of cource there is no -file

this the log folder you need to make writable  /home/mysite/public_html/administrator/tools/floodblocker/logs


edit:
i have just seen this you have done
Quote
The config file is writable but the directory was not, I have make it writable.
other dirs must have 755 permissions
777 must have only  the config file and log folder... only this two... reset anything else you have done to original permissions


****

/cache and /tmp also must be 777 .. permissions are not set automatically  by any one .. you have to set the by your own... this an answer to this:
Quote
It helped but, the site is one mess and I get this error:


Quote
Error creating feed file, please make folder cache/ writable (permissions 777)

the folder was already writable?
Title: Re: After moving site I get error when accessing the site
Post by: Dennis on October 23, 2009, 21:42:10
Well, don’t know what to say, for 3 weeks I have created a new site with over 100
content pages and I have done everything requested by the cms, including changing
files and folders permissions.

The site worked 100% before I moved the site by follow the info on this page:
https://www.elxis.org/guides/general-guides/move-elxis-to-root-folder.html

All the files and folders that I have been requested to change permission has required
permission but, still it tells me to make this folder writable:

Quote
Error creating feed file, please make folder cache/ writable (permissions 777)
Title: Re: After moving site I get error when accessing the site
Post by: ks-net on October 24, 2009, 00:15:58
then check file-folders owner...

Title: Re: After moving site I get error when accessing the site
Post by: Dennis on October 24, 2009, 14:20:36
And who should I expect to be the owner of the file, folder?

I’m thinking, the cache folder is full of files, in the zip the folder only has one index file, is it ok
to delete everything inside the cache folder? And hope that will solve the problem?
Title: Re: After moving site I get error when accessing the site
Post by: xmanhattan on October 24, 2009, 15:10:08
You can safely delete all the files in the cache folder.

As for the file and folder owner, usually on an Internet server that is assigned automatically by the server and in most cases is the same as your login name.

You can check the permissions and the owner name with an ftp program in most cases.
Title: Re: After moving site I get error when accessing the site
Post by: Dennis on October 24, 2009, 19:12:49
Deleting those files got the error to disappear but, my site was still in one mess.
I DL the site to my machine and searched for the URL: elxis.mysite and found
hundreds of links that didn’t change when I moved the site in the folder cache/static/images/

Perhaps the info on the site I followed (link above) is not for the 2009 version?
Title: Re: After moving site I get error when accessing the site
Post by: ks-net on October 24, 2009, 22:05:10
if want pm me access to see it .. or better upload your local-site+local-db  in a zip folder to install it for you...
unless your server has a problem it want be hard!

Title: Re: After moving site I get error when accessing the site
Post by: xmanhattan on October 25, 2009, 10:32:43
The links do not change automatically when you move the files from your local system to the server.
To correctly move the setup that you had on your local system using wamp or whatever, you would have zipped the files and copied them to the server.
Then you should have exported the sql on your system and then edit it using a utf-8 editor and replaced all of the localhost to your server name.
Anyway, you can do as ks-net says.