Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: horsedog on June 17, 2009, 10:50:01 PM

Title: custom template delima for httpd.conf
Post by: horsedog 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   ???

Title: Re: custom template delima for httpd.conf
Post by: CharlieBrady 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.
Title: Re: custom template delima for httpd.conf
Post by: electroman00 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....
Title: Re: custom template delima for httpd.conf
Post by: electroman00 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 (http://forums.contribs.org/index.php/topic,43978.0.html)

Title: Re: custom template delima for httpd.conf
Post by: horsedog 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 ???
Title: Re: custom template delima for httpd.conf
Post by: Stefano 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)
Title: Re: custom template delima for httpd.conf
Post by: electroman00 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..
Title: Re: custom template delima for httpd.conf
Post by: Stefano 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
Title: Re: custom template delima for httpd.conf
Post by: electroman00 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.
Title: Re: custom template delima for httpd.conf
Post by: electroman00 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.
Title: Re: custom template delima for httpd.conf
Post by: mmccarn 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
Title: Re: custom template delima for httpd.conf
Post by: horsedog 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.
Title: Re: custom template delima for httpd.conf
Post by: cactus 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.
Title: Re: custom template delima for httpd.conf
Post by: cactus 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.
Title: Re: custom template delima for httpd.conf
Post by: electroman00 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.
Title: Re: custom template delima for httpd.conf
Post by: electroman00 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.
Title: Re: custom template delima for httpd.conf
Post by: horsedog 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.