Koozali.org: home of the SME Server

custom template help needed for hosts file / wordpress

Offline calisun

  • *
  • 601
  • +0/-0
Re: custom template help needed for hosts file / wordpress
« Reply #30 on: November 25, 2012, 06:30:53 AM »
My work-around that I have posted earlier does not work, it has to be done in a custom-template to make it work.
It took me a while, but I got it figured out what to change and how to create a custom-template for this issue. I will be updating my wordpress "how to" soon, and I will post a notice here when I am done.

« Last Edit: November 25, 2012, 06:59:38 AM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: custom template help needed for hosts file / wordpress
« Reply #31 on: November 25, 2012, 07:43:22 AM »
newburns

I renamed .../ibays/ibayname/files to /files-orig and then created .../ibays/ibayname/html/files folder, put a simple index file in that folder and it was accessible using the domain name I pointed at that ibay (in teh Domains panel), in the form
domainname.com/files

I moved an older single site version of wordpress from /opt (and upgraded it to the latest) into an ibay & it is accessible using a virtual domain name and works fine.

You seem to have unusual problems
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: custom template help needed for hosts file / wordpress
« Reply #32 on: December 02, 2012, 06:26:45 AM »
I have a multisite version. Also, I have many plugins that have altered my .htaccess file such as W3TC, a cs and js minifier, as well as some others for page speed.
I'm not sure if that's why the workaround doesn't work for me, but I believe it has something to do with the new domain listed under Server-Manager. That's the only variable that's different.
Why else does it work for the main domain, but not the other domains?
Where is the template to look into /"ibay"/files anytime http://domain.tld/files is requested?
And how can the .htaccess rewrite be called before the request is sent to /ibays/files?
Also, it seems that anything in httpd.conf gets called first. Should I transfer my .htaccess to httpd.conf?
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: custom template help needed for hosts file / wordpress
« Reply #33 on: December 02, 2012, 09:51:06 AM »
newburns

Quote
Where is the template to look into /"ibay"/files anytime http://domain.tld/files is requested?

If you made a little more effort.

I'm sure you know that templates are in
/etc/e-smith/templates

and all httpd.conf template fragments are in
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/

So then by taking a little look around you find
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent

It appears to have aliases eg for the ibay files folder
Whether it's what you want I'm not sure, so try changing it (in a custom template).

Also take a look at:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
« Last Edit: December 02, 2012, 10:00:17 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline calisun

  • *
  • 601
  • +0/-0
Re: custom template help needed for hosts file / wordpress
« Reply #34 on: December 16, 2012, 08:05:54 AM »
I have updated my step-by-step how-to for installing wordpress in an iBay.
I believe I made it clearer than before and I gave instructions on creating custom templates to fix couple of issues.
see it here:
http://wiki.contribs.org/User_talk:Calisun
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: custom template help needed for hosts file / wordpress
« Reply #35 on: December 16, 2012, 08:07:36 AM »
Thank You!!! :-o
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline calisun

  • *
  • 601
  • +0/-0
Re: custom template help needed for hosts file / wordpress
« Reply #36 on: December 16, 2012, 08:29:40 AM »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline raem

  • *
  • 3,972
  • +4/-0
Re: custom template help needed for hosts file / wordpress
« Reply #37 on: April 01, 2013, 11:57:09 AM »
calisun

Quote
I have updated my step-by-step how-to for installing wordpress in an iBay.
http://wiki.contribs.org/User_talk:Calisun

I have copied that pretty much "as is" to a Howto page
http://wiki.contribs.org/Wordpress_Multisite
It is now more easily visible to all sme users.

It could do with a bit of layout & formatting improvement, will look at that later, but is OK for now.
Please update this version in future.
I took the liberty of deleting your talk page to avoid confusion & duplication.
...