Koozali.org: home of the SME Server

custom template delima for httpd.conf

Offline horsedog

  • *
  • 16
  • +0/-0
    • http://www.thecardpros.com
custom template delima for httpd.conf
« on: June 17, 2009, 10:50:01 PM »
So, my drupal install is giving me some grief... it is in an ibay, and the "file" directory it wants to see is an http file, not the file share... (Yes, I know it should be in /opt... but there are multiple drupal sites...)

The httpd.conf that sme generates by default is

    Alias       /files   /home/e-smith/files/ibays/xxxxxx/files

I need for either this domain, or for all domains, I'm not picky...

    Alias       /files   /home/e-smith/files/ibays/xxxxxx/html/files
                                                                      ^^^  need to add
 
1. is there a db variable that would fix the ALIAS for a specific ibay?

or

2. What segment of the templates would I need to change for this to work- until I updated anything that would re-write the templates... ???

or

3. Some other solution that would re-wire /home/e-smith/files/ibays/xxxxxx/files  to   /home/e-smith/files/ibays/xxxxxx/html/files   ???


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: custom template delima for httpd.conf
« Reply #1 on: June 18, 2009, 05:09:29 AM »
So, my drupal install is giving me some grief...

Drupal install is off-topic for this forum, which concerns only software included in the SME base install.

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: custom template delima for httpd.conf
« Reply #2 on: June 18, 2009, 07:07:02 AM »
Drupal install is off-topic for this forum, which concerns only software included in the SME base install.

Since when is discussing how to config a software package on SME off-topic.
Search this forum Charlie, thousands of post discussing howto install every pkg that has ever been installed on sme.
Seems all you want to do these days is bring this project to it's knees.

If you can't or don't want to help him, then don't post, simple as that.
Take a vacation dude.
Wow....

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: custom template delima for httpd.conf
« Reply #3 on: June 18, 2009, 07:31:53 AM »
So, my drupal install is giving me some grief... it is in an ibay, and the "file" directory it wants to see is an http file, not the file share... (Yes, I know it should be in /opt... but there are multiple drupal sites...)

The httpd.conf that sme generates by default is
    Alias       /files   /home/e-smith/files/ibays/xxxxxx/files
I need for either this domain, or for all domains, I'm not picky...
    Alias       /files   /home/e-smith/files/ibays/xxxxxx/html/files
                                                                      ^^^  need to add
1. is there a db variable that would fix the ALIAS for a specific ibay?
or
2. What segment of the templates would I need to change for this to work- until I updated anything that would re-write the templates... ???
or
3. Some other solution that would re-wire /home/e-smith/files/ibays/xxxxxx/files  to   /home/e-smith/files/ibays/xxxxxx/html/files   ???

(Yes, I know it should be in /opt... but there are multiple drupal sites...)

You can put as many as you want in /opt limited only by your HD space.

Your question Alias, this might help forum post


Offline horsedog

  • *
  • 16
  • +0/-0
    • http://www.thecardpros.com
Re: custom template delima for httpd.conf
« Reply #4 on: June 18, 2009, 07:54:32 AM »
Many thanks, so far ??

This doesn't have to be about drupal... - my question goes much more to editing the template... Drupal is only a symptom of my problem

It looks like the consensus is more about option #3...  aka. put it in opt.. I know I could... but the knuckle draggers that own the server would not be able to find the files if it isn't in an ibay..

Does anyone have insight into changing the template that defines httpd.conf ???

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: custom template delima for httpd.conf
« Reply #5 on: June 18, 2009, 08:00:51 AM »
Quote
If you can't or don't want to help him, then don't post, simple as that.

it's a simple question of order... this forum is only for what you install from SME's cd

Quote
Take a vacation dude.

you too and, possibly, for a long time, thank you

Stefano and... I'm on vacation (writing from the beach)

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: custom template delima for httpd.conf
« Reply #6 on: June 18, 2009, 08:05:17 AM »
it's a simple question of order... this forum is only for what you install from SME's cd

Since when....???

Quote
you too and, possibly, for a long time, thank you
ditto dude, thank you

Quote
Stefano and... I'm on vacation (writing from the beach)
Were happy for you, have fun..

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: custom template delima for httpd.conf
« Reply #7 on: June 18, 2009, 08:10:34 AM »
Quote
since when?

AFAIK, ever
Quote
SME Server 7.x
Discussion of the use of *ONLY* the components and features included

it's written right in front of you ;-)

have a nice day
Stefano

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: custom template delima for httpd.conf
« Reply #8 on: June 18, 2009, 08:17:09 AM »
So it's in the wrong category.

So it needs to be in SME 7.x Contribs.

Quote
Drupal install is off-topic for this forum, which concerns only software included in the SME base install.

Should have been

Drupal install is off-topic for this forum category, which concerns only software included in the SME base install.

I'm sure someone will move it.

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: custom template delima for httpd.conf
« Reply #9 on: June 18, 2009, 08:34:42 AM »
Many thanks, so far ??

This doesn't have to be about drupal... - my question goes much more to editing the template... Drupal is only a symptom of my problem

It looks like the consensus is more about option #3...  aka. put it in opt.. I know I could... but the knuckle draggers that own the server would not be able to find the files if it isn't in an ibay..

Does anyone have insight into changing the template that defines httpd.conf ???

Looking for your answer, been awhile since I used an ibay and needed to reconfig it manually, seems some things have change.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: custom template delima for httpd.conf
« Reply #10 on: June 18, 2009, 03:21:41 PM »
Quote
The httpd.conf that sme generates by default is

    Alias       /files   /home/e-smith/files/ibays/xxxxxx/files

I need for either this domain, or for all domains, I'm not picky...

    Alias       /files   /home/e-smith/files/ibays/xxxxxx/html/files
                                                                      ^^^  need to add

Why not delete the existing "files" folder, make it a symlink to the drupal "files" folder, and enable symlinks for the ibay, like this:
Code: [Select]
rm -rf /home/e-smith/files/ibays/xxxxxx/files
ln -s /home/e-smith/files/ibays/xxxxxx/html/files /home/e-smith/files/ibays/xxxxxx/files
db accounts setprop xxxxxx FollowSymLinks enabled
signal-event ibay-modify

Offline horsedog

  • *
  • 16
  • +0/-0
    • http://www.thecardpros.com
Re: custom template delima for httpd.conf
« Reply #11 on: June 18, 2009, 07:10:43 PM »
It tried it, there must be some permission issues, it doesn't work

adding

db accounts setprop xxxxxxx PHPBaseDir /home/e-smith/files/ibays/xxxxxx/files
signal-event ibay-modify xxxxxxx

didn't fix the permissions.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: custom template delima for httpd.conf
« Reply #12 on: June 18, 2009, 07:25:44 PM »
Drupal install is off-topic for this forum, which concerns only software included in the SME base install.
Moving to SME 7.x Contribs where it is more appropriate.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: custom template delima for httpd.conf
« Reply #13 on: June 18, 2009, 07:29:04 PM »
So it's in the wrong category.

So it needs to be in SME 7.x Contribs.

Should have been

Drupal install is off-topic for this forum category, which concerns only software included in the SME base install.

AFAIK that is exactly what Charlies said:

Drupal install is off-topic for this forum, which concerns only software included in the SME base install.

I'm sure someone will move it.
Yes, indeed.

Now please get this thread back on it's topic. Thanks in advance.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: custom template delima for httpd.conf
« Reply #14 on: June 18, 2009, 07:34:55 PM »
The thread was back on topic until you posted that, thanks for moving it though.
If it had been moved without any posts it would have been seamless.
Apparently some do not have authority to do just that and some do.

Quote
AFAIK that is exactly what Charlies said:

That's debatable, if
Quote
Drupal install is off-topic for this forum category,
Then I wouldn't have taken it the wrong way, as I'm sure I was the only one, or at least the first one.
I keep forgetting to make adjustments for Charlies verbage to meaning/intent.
You would think that would be ingrained by now.
My bad...sorry.
Anyway thanks for your help.
« Last Edit: June 18, 2009, 07:42:43 PM by electroman00 »

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: custom template delima for httpd.conf
« Reply #15 on: June 18, 2009, 08:00:41 PM »
I would think installing drupal in /opt would be advantageous as well as easier.

I'll take a look at it.

Offline horsedog

  • *
  • 16
  • +0/-0
    • http://www.thecardpros.com
Re: custom template delima for httpd.conf
« Reply #16 on: June 27, 2009, 05:30:41 AM »
it was rather easy to change the template... I did a manual search for 'alias' in the httpd.conf templates.