Koozali.org formerly Contribs.org

[ANNOUNCE] SME Site Maker (now with full MySQL support)

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #15 on: May 10, 2007, 08:40:53 PM »
You're welcome; I was just going to fix a few typos, but... Very small price to pay for sharing your script!!
Ryan

Offline gixmo

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #16 on: June 24, 2007, 11:59:20 AM »
when i use SMESiteMaker and made a site with a alias 'families'
i get this error in my httpd_error log :

Quote
[Sun Jun 24 11:57:00 2007] [crit] [client 192.168.1.12] (13)Permission denied: /opt/pgv/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable


where did i go wrong?

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #17 on: June 24, 2007, 08:56:42 PM »
I'm not sure about what make this error, but for the log I suppose you need to set rights permissions for .htaccess file. Ensure you have set permissions to 644 for this file.
And ensure you have choice "YES" for "Allow Override" when the script prompt you.
Another option, set your root directory permissions (in your case /opt/pgv) to 777.
Searching in google I found a tons of information about your error.
For one see http://gallery.menalto.com/node/27986

Offline gixmo

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #18 on: June 25, 2007, 06:58:01 PM »
No the permissions are ok, the permisions on the dir itself are even 777. But i get still the mentioned error message.

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #19 on: July 26, 2007, 11:13:22 PM »
I need a pointer or two...
I am trying to use this script to install wordpress in /opt/home, but I have not been successful... It doesn't seem to matter what options that I use while going through the script, I get a 403 Forbidden for every /opt directory that I have tried to create...

Here is my most recent custom template
Code: [Select]
Alias /home /opt/wordpress
<Directory /opt/wordpress>
AddType application/x-httpd-php .php .php3 .phtml
Options  Indexes  +Includes  FollowSymLinks
order deny,allow
deny from all
allow from all
php_flag register_globals on
php_admin_flag allow_url_fopen on
php_admin_value eaccelerator.enable 1
php_admin_value open_basedir /opt/wordpress
</Directory>
Is there anything that jumps out as causing a problem? I have tried as many variables as I can think of like /opt/home, opt/wordpress, opt/bob, register_globals on/off, includes on/off, allow override on/off, etc...

I have tried on a 7.2 server as well as a 7.1.3. I have used this before awhile back and didn't have problems so I don't think it is a bug, I think it is me.
Thanks,
Ryan

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #20 on: July 27, 2007, 12:48:28 AM »
Quote from: "haymann"
I am trying to use this script to install wordpress in /opt/home, but I have not been successful... I


I see in your configuration you are use /opt/wordpress directory, and Alias to "home". This signify you must copy your site files under /opt/wordpress directory, and access at http://your_domain/home

I create the same configuration you have post, and work ok for me. Test it in 7.1.3 and 7.2

If you have set FollowSymLinks, becareful with .htaccess file in your site.
Test the donfiguration without any site file, or almost one image, and see if you can access at /home.

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #21 on: July 27, 2007, 04:45:57 AM »
Yeah, I'm not sure what I am doing wrong yet... The problem is that I get the 403 Forbidden message when I try to view mysite.com/home, when I look at mysite/wordpress it is not found so part of it is working for me. It is forbidden if I have files in the directory (/opt/wordpress) or if it is empty. And if I set it up so that there is no alias, mysite.com/wordpress is found, but forbidden... I give up for tonight. I would like to figure out what I am doing wrong though.

Which option sets the FollowSymLinks?
Thanks,
Ryan

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #22 on: July 27, 2007, 05:51:52 AM »
The FollowSymLinks allow sym linking of files httpd can server. I mistake with my explain because I refer to AllowOverride option. Set this last to "All" if you want apache can read .htaccess file.

About your problem, I think you have an ibay named "wordpress" or "home", and apache go to these ibays and not to your alias directory. Check again your ibays names, the directory names after your domains, and all httpd custom-templates. May be you have a conflict with some ibays names or directoyrs after domains same as your alias name.

[ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #23 on: July 27, 2007, 03:03:43 PM »
Quote from: "PicsOne"
The FollowSymLinks allow sym linking of files httpd can server. I mistake with my explain because I refer to AllowOverride option. Set this last to "All" if you want apache can read .htaccess file.
OK, so I'm looking at your script and if I read it correctly (which I don't know anything about coding) then the FollowSymLinks option is set during the "allow includes" part of the script? I just wasn't sure where that was being set because I didn't know what allow includes meant and I didn't see an option for FollowSymLinks...
Quote from: "PicsOne"
About your problem, I think you have an ibay named "wordpress" or "home", and apache go to these ibays and not to your alias directory. Check again your ibays names, the directory names after your domains, and all httpd custom-templates. May be you have a conflict with some ibays names or directoyrs after domains same as your alias name.
No, no ibays by those names, but I did get it working. The directory in /opt was being created with permissions of 644, when I changed that to 755 I now can access the site. It looks like your script sets it to 644 by default. Do I have something wrong that I can only access if I use 755?
Thanks,
Ryan

Re: [ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #24 on: October 07, 2007, 10:54:20 AM »
The directory in /opt was being created with permissions of 644, when I changed that to 755 I now can access the site. It looks like your script sets it to 644 by default. Do I have something wrong that I can only access if I use 755?

Sorry for the delay.
You are right, a little bug.
Change line 108 to this:
Code: [Select]
chmod 755 $f_rootI hope this help you.

Re: [ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #25 on: October 08, 2007, 08:00:07 PM »
Sorry for the delay.
You are right, a little bug.
Change line 108 to this:
Code: [Select]
chmod 755 $f_rootI hope this help you.
Cool, I came to ask you another question, and saw your answer to my other one. Fantastic, thanks!!

Now to the real reason I came...
Next time that you are updating your script, I think it might be beneficial to add some description on the "allow includes" step of the script. I think it would be handy for us novices to know what that will allow/disallow by selecting yes or no.

I have used your script several times once I figured out to changed that directory to 755, and it has been a huge help to me!
Thanks,
Ryan

Re: [ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #26 on: October 08, 2007, 11:26:41 PM »
Is there a separate web site detailing the virtues of Site Maker?

Re: [ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #27 on: October 09, 2007, 12:55:24 AM »
Is there a separate web site detailing the virtues of Site Maker?

Read http://wiki.contribs.org/SME_Site_Maker about SMESM

Offline TTown

Re: [ANNOUNCE] SME Site Maker (now with full MySQL support)
« Reply #28 on: October 15, 2007, 04:54:24 PM »
Normando,

I am very fond of your script. I applied it several times and it works reliably. (Even better once you have a clue of what it means what you are doing  :? )
Since I don't know how to do it without a prefabricated script and yours is already very close to the subject, please allow one question:
Is there a way of installing the site(s) so they respond to a specific virtual host/domain name?
(The SME Server-Manager allows to add (virtual) domains. Using dyndns I have two domain names pointing to my server at home. Now I would like it to respond to the different domain names by displaying different websites.)

If you'd prefer me to post this question somewhere else, please advise on how to procede.

Best regards
TTown
(fnord)