WebsiteBaker Community Forum

WebsiteBaker Support (2.10.x) => General Help & Support => Topic started by: svsanchez on May 23, 2022, 09:45:35 PM

Title: Problem moving Baker to another folder
Post by: svsanchez on May 23, 2022, 09:45:35 PM
Hello, I am trying to move Baker to the "pages" directory so that all of Baker will be on the same directory, as if I had installed it in the root from the beginning.

Ok, so my Baker was installed in the root and I moved all the directories and the index.php + config.php files to the "pages" directory. (None of the actual pages of the site were moved)

Then, I changed the "pages" directory to blank in phpmyadmin, as it didn't allow me to change it on the backend.

I can access the backend and the main page of the site.

The problems I am facing are:

1) I can't access the "sub-pages", I get an internal server error (Error 500).

2) Since I can access the homepage, I thought that maybe there is a problem with my sub-pages templates. I tried modifying the template via the backend, but I get a "Security offense!! Access denied!" message whenever I try to make any change.

What can be causing the internal server error and security offense messages?

Important: Please note that this is a WB 2.8.3 site that I have not been able to upgrade since it is very big (and when I upgrade it becomes excruciatingly slow), and so I want to try to move it to the pages directory in order to install a new main index file while I work on a new version of my directory.
Title: Re: Problem moving Baker to another folder
Post by: svsanchez on May 24, 2022, 05:35:30 AM
Update: I noticed that for some reason, the sub-pages are looking for the index.php file in the ROOT directory of my server, instead of searching for it in the PAGES directory, even though all the files are in the PAGES directory. How do I tell Baker to use the index.php file inside the Pages directory?
Title: Re: Problem moving Baker to another folder
Post by: DarkViper on May 24, 2022, 10:34:59 AM
Update: I noticed that for some reason, the sub-pages are looking for the index.php file in the ROOT directory of my server, instead of searching for it in the PAGES directory, even though all the files are in the PAGES directory. How do I tell Baker to use the index.php file inside the Pages directory?
The answer:  no way to do so.. if you don't want to change thousends of things inside the code..  ;-)

Ok. Thera are two possibilities:
All other changes to the directory structure and the placement of files within this structure inevitably lead to (mostly unrecoverable) problems.

greatings,
Manuela
Title: Re: Problem moving Baker to another folder
Post by: crnogorac081 on May 24, 2022, 12:59:03 PM
If I understood well, you want your pages thet are currently (root)/pages/page1.php, (root)/pages/sub/page2.php to change to (root)/page1.php , (root)/sub/page1.php etc ? This might be done using htaccess
Title: Re: Problem moving Baker to another folder
Post by: svsanchez on May 24, 2022, 05:27:13 PM
Hello Manuela, thank you for your reply. This is sort of what I did:


  • You can move the whole installation into a new created subfolder and adjust the content of the config.php file accordingly. This changes the WB call from [ https://example.com/ ] to [ https://example.com/subfolder/ ].


The difference being that the subfolder where I moved the whole installation was already created (the PAGES directory), so now WB is installed in the Pages directory. I changed the config.php file and also used phpMyAdmin to change the pages directory to "blank".

I need to maintain the same pages URLs as they have been indexed by Google for almost 10 years and I have more than 3,500 pages.

I can access the backend but can't make any changes as anything I try to change there shows the "security offense" message. I also can access the site's homepage in the pages directory, but any other page shows an internal server error.
Title: Re: Problem moving Baker to another folder
Post by: ruebenwurzel on May 25, 2022, 06:50:32 AM
Hello,

if you have the index.php of WB also moved to the /pages directory you have to adapt the path in your hosting package.

What was the intent of your idee to move WB in the /pages directory? If the only reason is to get rid of the /pages directory, this can be don in WB 2.13.1 by a simple mouseclick in the backend of WB by using ShortUrl.

Matthias
Title: Re: Problem moving Baker to another folder
Post by: hgs on May 25, 2022, 07:50:07 AM
Important: Please note that this is a WB 2.8.3 site that I have not been able to upgrade since it is very big (and when I upgrade it becomes excruciatingly slow), and so I want to try to move it to the pages directory in order to install a new main index file while I work on a new version of my directory.

The problem is the "speed" of the website, which is getting worse with every update bigger WB 2.8.3.

There is already an entry here in the forum.

Therefore, the great new functions do not work, the access files to generate new from the BE, as far as I know, there was not yet in WB 2.8.3.
Title: Re: Problem moving Baker to another folder
Post by: svsanchez on May 25, 2022, 09:51:32 AM
Hello Ruebenwurzel and HGS.

Unfortunately, my site got too big for WB and I can't upgrade past 2.8.3, as it becomes incredibly slow. The site has more than 3,500+ pages and it seems that every time a page is generated, WB needs to "read" the whole database to generate the "showmenus", causing this speed issue (if I remove the menus, the pages are generated very fast).

This has caused in part that my site lose positions in the search engines, going from an average of 10,000 daily visits to 1,500 daily visits.

So, as much as I have loved WB for the past 10 years, and without a solution for this (and unable to move to newer versions of PHP as WB 2.8.3 only works yo to version 5.6), I decided to change CMS. My plan is to install Wordpress in the root folder of my server, and move WB inside the "pages" directory while I change little by little the different categories of my site.

I want to leave the current URLs as they are, so as to not lose the good search engine positionings that I still have. And I will create the Wordpress pages with the same URLs as the ones from WB.

It will take me many months to move the 3500+ pages from WB to WP, but at least this way I can change the categories little by little and hopefully see the benefits more rapidly.

Crnogorac was very kind helping me yesterday on one a copy of my site, and he still has some good ideas to try.

But I created a new copy just in case, so if you have any suggestions to do this please share them.

Thanks again!
Title: Re: Problem moving Baker to another folder
Post by: hgs on May 25, 2022, 01:46:05 PM
The problem has been in the forum for a long time.
I can only offer to test it on my test server with the original site as subdomain with the current version of WebsiteBaker and php8.0.

If this is an option for you, I will send you the access data to my FTP server.
I need a ZIP of the website and the DB Dump
Title: Re: Problem moving Baker to another folder
Post by: svsanchez on May 25, 2022, 05:49:27 PM
Hello hgs, sure, any help is greatly appreciated. How do I send the zip and DB to you?
Title: Re: Problem moving Baker to another folder
Post by: hgs on May 25, 2022, 07:23:25 PM
I send the access data by PM
Title: Re: Problem moving Baker to another folder
Post by: crnogorac081 on May 30, 2022, 03:32:16 PM
Hello,

Im helping  svsanchez about his problem and I noticed that (since he has like 3500 pages) , Settings page is loading incredibly slow... This is probably because he has 3500 pages and they are loading for  GDRP selection table.

Also, his Pages page is loading slow too, it takes like 2 minutes for loading complete page. Therefore I an creating for him a new Page tool for managing Pages (and it will be publicly available for testing soon), and it loads complete page list in like 6-8 seconds.

So I believe that we can apply this for GDRP block too..

Title: Re: Problem moving Baker to another folder
Post by: hgs on May 31, 2022, 08:55:38 AM
That is good, because I did not get any further, except that the original page on the German server runs faster than the original.
Title: Re: Problem moving Baker to another folder
Post by: crnogorac081 on June 08, 2022, 04:44:58 PM
Ok so the show_menu2 is replaced with new menu function (work in progress) and there is significant difference in page load speed. This (https://www.deguate.com.gt/) is his original site and this (https://test.svensanchez.com) is new upgraded to 2.13.1 with new menu function.

Website just jumped rank from F to B
Title: Re: Problem moving Baker to another folder
Post by: dbs on June 08, 2022, 04:52:50 PM
Wow, good job man!  (Y)
Title: Re: Problem moving Baker to another folder
Post by: hgs on June 09, 2022, 07:53:25 AM
Ok so the show_menu2 is replaced with new menu function (work in progress) and there is significant difference in page load speed. This (https://www.deguate.com.gt/) is his original site and this (https://test.svensanchez.com) is new upgraded to 2.13.1 with new menu function.

Website just jumped rank from F to B

I'm with dbs on this one.
Can you tell us the solution for the general one?
Title: Re: Problem moving Baker to another folder
Post by: crnogorac081 on June 09, 2022, 09:03:08 AM
Of course, I will post work in progress soon
Title: Re: Problem moving Baker to another folder
Post by: hgs on July 07, 2022, 10:44:52 AM
Of course, I will post work in progress soon
Anything to post yet?
Background of the question is:
On the test server the site is already running with the soon to be released WB version under php8.1, but very very slow. Therefore the solution is very interesting for us.
Title: Re: Problem moving Baker to another folder
Post by: crnogorac081 on July 07, 2022, 03:00:41 PM
Harald if you have his site it on your server I can send you current work in progress, pm me your email
Title: Re: Problem moving Baker to another folder
Post by: hgs on July 08, 2022, 08:52:43 AM
PM is on the way