Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: calisun on April 01, 2011, 07:43:02 AM

Title: PHP5-cgi and htaccess file rewrites
Post by: calisun on April 01, 2011, 07:43:02 AM
I have been using the following command to enable htaccess file rewrites on SME server for a while now, and everything seems to work fine. The issue is when I enable PHP5-cgi for a given ibay, following command seems not to work for that ibay. Even if I re-issue the following command after enabling PHP5-cgi, it still does not work.
Is there a different command I should be using on PHP5-cgi enabled ibay?

db accounts setprop [ibayname] FollowSymLinks enabled
db accounts setprop [ibayname] AllowOverride All
signal-event ibay-modify [ibayname]
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: CharlieBrady on April 01, 2011, 02:55:46 PM
Is there a different command I should be using on PHP5-cgi enabled ibay?

Off-topic for this forum - php5-cgi is not installed from the SME server CD rom.

.htaccess file support is not required. Anything you need can be done via a suitable custom template.
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: calisun on April 01, 2011, 07:35:16 PM
Off-topic for this forum

Agree, thanks for moving it from SME7 to SME7 Contribs forum.


Charlie, I know you have expressed a concern in the past about .htaccess security, but this is a server where I am the only user on it and no one else has access to it, so the security is not a big issue here.
 
I have already tried creating templates before instead of .htaccess, and I got locked out of the server. But when I put the same information back into .htaccess file, everything worked fine.  Besides, now my server is residing in a co-location facility, an hour drive from my house, so I don't want to risk getting locked out again.

SO, does anybody know how to enable .htaccess file rewrites for PHP5-cgi ??



.
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: calisun on April 11, 2011, 07:34:31 AM
I guess that is not possible??

I wish SME8 would be finally stable, so all these issues would no longer be an issue.
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: Stefano on April 11, 2011, 09:24:40 AM
I wish SME8 would be finally stable, so all these issues would no longer be an issue.

SME8 is stable.. it's not been released yet.. :-)
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: mmccarn on April 11, 2011, 01:46:35 PM
I found one site online that implied that if you're using php5-cgi then *some* directives that should work in .htaccess don't, and have to be moved to php.ini (I kept looking for a clear statement in this regard, and ended up losing the original page).

I'm pretty sure that php5-cgi is actually using /etc/php5/php.ini -- so you could manually add your changes to that file, issue sv restart httpd-e-smith, and see if things work...

A google or two for 'php5-cgi' plus the directives that aren't working might shed some light.
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: CharlieBrady on April 11, 2011, 02:43:34 PM
I'm pretty sure that php5-cgi is actually using /etc/php5/php.ini -- so you could manually add your changes to that file, issue sv restart httpd-e-smith, and see if things work...

Using php5-cgi there is no need to restart httpd-e-smith - php5-cgi is not running within the context of the apache process, but runs as a separate CGI process.
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: Stefano on April 11, 2011, 03:02:05 PM
I'm pretty sure that php5-cgi is actually using /etc/php5/php.ini -- so you could manually add your changes to that file, issue sv restart httpd-e-smith, and see if things work...

just a cosmetic note: mmccarn, could you please use the standard "code" tag next time? thank you
Title: Re: PHP5-cgi and htaccess file rewrites
Post by: calisun on April 12, 2011, 01:56:19 AM
SME8 is stable.. it's not been released yet.. :-)

Good to hear, I am anxiously waiting. I have big plans for my SME powered web server, but I can't continue my development because I am being held back by outdated PHP and SQL.