Moving forum files to an external CDN

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Moving forum files to an external CDN

Post by nilanko » Thu May 02, 2013 1:41 pm

My web host limits the number of files accessed per second so when there are a lot of users online browsing simulteneously, my forum goes offline for a minute or two. So I want to move the most accessed files to a cdn. I can move all style files I think, what are the other files other than style files that are accessed while browsing through the forums and how can I move them?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21679
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Moving forum files to an external CDN

Post by Mick » Thu May 02, 2013 1:46 pm

You can transfer your whole board following Transferring Your Board to a New Host or Domain.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
Lumpy Burgertushie
Registered User
Posts: 66849
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Moving forum files to an external CDN

Post by Lumpy Burgertushie » Thu May 02, 2013 2:19 pm

not sure how that would work with phpbb. as far as I know, trying to split up phpbb files across different servers is not very easy if possible at all.

however, it sounds to me like your best bet is to find a better host. unless your board is extremely busy then I would think that your host just has some very restrictive limits set.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Re: Moving forum files to an external CDN

Post by nilanko » Thu May 02, 2013 2:23 pm

Please note visa I am NOT moving to a new host or domain. I just want to move some of the resources of the forum like style files and some php files to an external CDN to reduce load on my web server.

User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Re: Moving forum files to an external CDN

Post by nilanko » Thu May 02, 2013 3:33 pm

There must be a starting file from where other files are called. Which file is it? Index.php? Or what? I can easily put direct links to external resources in css files and template files but what about other php files called while browsing forum?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21679
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Moving forum files to an external CDN

Post by Mick » Thu May 02, 2013 5:21 pm

If you can explain why you think you need to split up phpBB because your host imposes limits on the number of file accesses per second someone may be able to assist you. As far as I'm aware having the files 'elsewhere' isn't possible with vanilla phpBB so I suggest you either have a search of the MODs forums and, if you don't find anything, make a MOD request.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Moving forum files to an external CDN

Post by Oyabun1 » Thu May 02, 2013 9:10 pm

From what I've seen it cannot be easily done with the current phpBB line because phpBB uses relative URLs not absolute and they would need to be changed for every asset moved. There will be changes in phpBB 3.1 to make it much easier.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Re: Moving forum files to an external CDN

Post by nilanko » Fri May 03, 2013 5:03 am

I recently moved to a free host (byet) which gives me unmetered mysql space (I have confirmed with their support), so free host is bound to have limits.

Absolute URLs are working perfectly fine with style files. For example, I can easily put direct links to images in CSS files, also change the calls to CSS and JS files to absolute URLs. I am concerned with the PHP stuff.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66849
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Moving forum files to an external CDN

Post by Lumpy Burgertushie » Fri May 03, 2013 12:34 pm

nilanko wrote:I recently moved to a free host (byet) which gives me unmetered mysql space (I have confirmed with their support), so free host is bound to have limits.

Absolute URLs are working perfectly fine with style files. For example, I can easily put direct links to images in CSS files, also change the calls to CSS and JS files to absolute URLs. I am concerned with the PHP stuff.
that is thte point, the "php stuff" is where you will have the problems.

luck,
robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Re: Moving forum files to an external CDN

Post by nilanko » Fri May 03, 2013 10:20 pm

Lumpy Burgertushie wrote:
nilanko wrote:I recently moved to a free host (byet) which gives me unmetered mysql space (I have confirmed with their support), so free host is bound to have limits.

Absolute URLs are working perfectly fine with style files. For example, I can easily put direct links to images in CSS files, also change the calls to CSS and JS files to absolute URLs. I am concerned with the PHP stuff.
that is thte point, the "php stuff" is where you will have the problems.

luck,
robert
Means if I place PHP files externally on CDN, they can't run?

User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Re: Moving forum files to an external CDN

Post by nilanko » Fri May 03, 2013 10:48 pm

Ummm...I came to know CDN can't serve php files. Is it possible to "combine" some php files of phpbb so as to reduce number of files hit counter? The problem is not the size of the files - the problem is the number of files accessed.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66849
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Moving forum files to an external CDN

Post by Lumpy Burgertushie » Fri May 03, 2013 11:24 pm

I say it is back to your host being too restrictive. does your site get thousands and thousands of hits per second?

there are some very big, very busy phpbb boards ( and other types of sites ) out there that do not have this problem or we would have heard of it before.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Moving forum files to an external CDN

Post by Oyabun1 » Fri May 03, 2013 11:32 pm

You would first need to know exactly what the host is counting as a file access because it may be a waste of time combining PHP files if the internal connections are not being counted. Combining files is a non trivial exercise and will have ongoing effects, such as when updating or adding MODs to the board.

Your time would likely be better spent looking for a less restrictive host.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Re: Moving forum files to an external CDN

Post by nilanko » Sat May 04, 2013 2:57 am

Lumpy Burgertushie wrote:I say it is back to your host being too restrictive. does your site get thousands and thousands of hits per second?

there are some very big, very busy phpbb boards ( and other types of sites ) out there that do not have this problem or we would have heard of it before.

robert
Its free host, Byet, I can't afford paid ATM, my older posts should tell why. No, not thousands at all. My board is brand new, no one is there. I was testing it using http://browsershots.org while the problem showed up.
Oyabun1 wrote:You would first need to know exactly what the host is counting as a file access because it may be a waste of time combining PHP files if the internal connections are not being counted. Combining files is a non trivial exercise and will have ongoing effects, such as when updating or adding MODs to the board.

Your time would likely be better spent looking for a less restrictive host.
Each and every file called/read off the disk is counted as one hit. There's a limit on the number of hits per second, the actual number they don't disclose.

If combining is possible, I would like to request you to guide me how to do it. I have already installed all mods I want and don't plan to add any others.

Cheers,
NH

User avatar
nilanko
Registered User
Posts: 133
Joined: Sun Apr 21, 2013 7:32 pm
Location: Earth
Name: Nilanko Halder

Re: Moving forum files to an external CDN

Post by nilanko » Sat May 04, 2013 3:19 am

Can I get a quick reply to this?

Which is the first file read from the style directory when I go to my forum index? Is it <stylename>/templates/overall_header.html or what?

Please, I need a quick reply to this question.

Locked

Return to “[3.0.x] Support Forum”