Koozali.org: home of the SME Server

PHP5-cgi and htaccess file rewrites

Offline calisun

  • *
  • 620
  • +0/-1
PHP5-cgi and htaccess file rewrites
« 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]
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 CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PHP5-cgi and htaccess file rewrites
« Reply #1 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.

Offline calisun

  • *
  • 620
  • +0/-1
Re: PHP5-cgi and htaccess file rewrites
« Reply #2 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 ??



.
« Last Edit: April 02, 2011, 02:59:42 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 calisun

  • *
  • 620
  • +0/-1
Re: PHP5-cgi and htaccess file rewrites
« Reply #3 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.
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 Stefano

  • *
  • 10,894
  • +3/-0
Re: PHP5-cgi and htaccess file rewrites
« Reply #4 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.. :-)

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: PHP5-cgi and htaccess file rewrites
« Reply #5 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.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PHP5-cgi and htaccess file rewrites
« Reply #6 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: PHP5-cgi and htaccess file rewrites
« Reply #7 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

Offline calisun

  • *
  • 620
  • +0/-1
Re: PHP5-cgi and htaccess file rewrites
« Reply #8 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.
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