centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

Centurion without mod_php #54

Open milch-shake opened 12 years ago

milch-shake commented 12 years ago

Hey Guys,

is it possible to install/use Centurion with php-cgi?

lchenay commented 12 years ago

It should work in CGI.

Do you have any problem ?

Laurent Chenay

http://www.centurion-project.org Lead developer of Centurion CMF

2012/2/27 milch-shake < reply@reply.github.com

Hey Guys,

is it possible to install/use Centurion with php-cgi?


Reply to this email directly or view it on GitHub: https://github.com/centurion-project/Centurion/issues/54

milch-shake commented 12 years ago

Hm, yes i've got big problems with installation/configuration centurion. i'm working on a manageServer not dedicated Server.

I've set all DB Tables, .htaccess files und APPLICATION_ENV manual in the files.

when i try to go to admin there comes 404:

http://centurion.devserver01.de/admin

Please Help... i will use centurion, but dont know how to install :-(

Am 28.02.2012 11:58, schrieb Laurent:

It should work in CGI.

Do you have any problem ?

Laurent Chenay

http://www.centurion-project.org Lead developer of Centurion CMF

2012/2/27 milch-shake< reply@reply.github.com

Hey Guys,

is it possible to install/use Centurion with php-cgi?


Reply to this email directly or view it on GitHub: https://github.com/centurion-project/Centurion/issues/54


Reply to this email directly or view it on GitHub: https://github.com/centurion-project/Centurion/issues/54#issuecomment-4213517

lchenay commented 12 years ago

Seems that the mode_rewrite does not working or you don't have "Allowoverride all".

Laurent Chenay

http://www.centurion-project.org Lead developer of Centurion CMF

2012/2/28 milch-shake < reply@reply.github.com

Hm, yes i've got big problems with installation/configuration centurion. i'm working on a manageServer not dedicated Server.

I've set all DB Tables, .htaccess files und APPLICATION_ENV manual in the files.

when i try to go to admin there comes 404:

http://centurion.devserver01.de/admin

Please Help... i will use centurion, but dont know how to install :-(

Am 28.02.2012 11:58, schrieb Laurent:

It should work in CGI.

Do you have any problem ?

Laurent Chenay

http://www.centurion-project.org Lead developer of Centurion CMF

2012/2/27 milch-shake< reply@reply.github.com

Hey Guys,

is it possible to install/use Centurion with php-cgi?


Reply to this email directly or view it on GitHub: https://github.com/centurion-project/Centurion/issues/54


Reply to this email directly or view it on GitHub:

https://github.com/centurion-project/Centurion/issues/54#issuecomment-4213517


Reply to this email directly or view it on GitHub:

https://github.com/centurion-project/Centurion/issues/54#issuecomment-4216030

milch-shake commented 12 years ago

By Adding Line: Allowoverride all to centurion/.htaccess i will get an 500 Error. My .htaccess File in centurion/.htacces (parent directory of public folder)

RewriteEngine On RewriteBase /

Allowoverride all

RewriteCond %{REQUEST_URI} ^/attachment/. RewriteRule ^attachment/(.)$ /static/$1 [PT]

RewriteCond %{REQUEST_FILENAME} !-s RewriteCond %{QUERYSTRING} ^([^:]):([^:]):([^:])(:([0-9a-z]))?(.)$ [NC,OR] RewriteCond %{QUERYSTRING} ^([a-zA-Z0-9-])%3A([a-zA-Z0-9-])%3A([a-zA-Z0-9-])(%3A([0-9a-z]))?%3A(.)$ [NC] RewriteRule ^public/static/(.)/(.)$ public/files/%2/%5.centurion [NC,PT]

Rewrite for static image (with effect)

RewriteCond %{REQUEST_FILENAME} !-s RewriteCond %{QUERYSTRING} ^([^:]):([^:]):([^:]):([0-9a-z])(.)$ [NC,OR] RewriteCond %{QUERYSTRING} ^([a-zA-Z0-9-])%3A([a-zA-Z0-9-])%3A([a-zA-Z0-9-])%3A([0-9a-z])%3A(._)$ [NC] RewriteRule ^public/files/.*$ public/media/image/get/id/%1/fileid/%2/key/%3/effect/%4/extra/%5? [NC,PT]

Rewrite for static file

RewriteCond %{REQUEST_FILENAME} !-s RewriteCond %{QUERYSTRING} ^([^:]):([^:]):([^:])(._)$ [NC,OR] RewriteCond %{QUERYSTRING} ^([a-zA-Z0-9-])%3A([a-zA-Z0-9-])%3A([0-9a-z])%3A(._)$ [NC] RewriteRule ^public/files/.*$ public/media/file/get/id/%1/fileid/%2/key/%3/extra/%4? [NC,PT]

Rewrite for cached file

RewriteCond %{DOCUMENT_ROOT}/cached/index.html -f

RewriteRule ^public/?$ public/cached/index.html [L]

RewriteCond %{DOCUMENT_ROOT}/cached%{REQUEST_URI}.html -f

RewriteRule public/.* public/cached%{REQUEST_URI}.html [L]

RewriteCond %{DOCUMENT_ROOT}/cached%{REQUEST_URI}.css -f

RewriteRule public/.* public/cached%{REQUEST_URI}.css [L]

RewriteCond %{DOCUMENT_ROOT}/cached%{REQUEST_URI}.js -f

RewriteRule public/.* public/cached%{REQUEST_URI}.js [L]

RewriteCond %{DOCUMENT_ROOT}/cached%{REQUEST_URI}.xml -f

RewriteRule public/.* public/cached%{REQUEST_URI}.xml [L]

RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUESTFILENAME} -d RewriteRule ^.$ - [NC,L] RewriteRule ^._$ public/index.php [NC,L]

Am 28.02.2012 15:24, schrieb Laurent:

Seems that the mode_rewrite does not working or you don't have "Allowoverride all".

Laurent Chenay

http://www.centurion-project.org Lead developer of Centurion CMF

2012/2/28 milch-shake< reply@reply.github.com

Hm, yes i've got big problems with installation/configuration centurion. i'm working on a manageServer not dedicated Server.

I've set all DB Tables, .htaccess files und APPLICATION_ENV manual in the files.

when i try to go to admin there comes 404:

http://centurion.devserver01.de/admin

Please Help... i will use centurion, but dont know how to install :-(

Am 28.02.2012 11:58, schrieb Laurent:

It should work in CGI.

Do you have any problem ?

Laurent Chenay

http://www.centurion-project.org Lead developer of Centurion CMF

2012/2/27 milch-shake< reply@reply.github.com

Hey Guys,

is it possible to install/use Centurion with php-cgi?


Reply to this email directly or view it on GitHub: https://github.com/centurion-project/Centurion/issues/54


Reply to this email directly or view it on GitHub:

https://github.com/centurion-project/Centurion/issues/54#issuecomment-4213517

Reply to this email directly or view it on GitHub:

https://github.com/centurion-project/Centurion/issues/54#issuecomment-4216030


Reply to this email directly or view it on GitHub: https://github.com/centurion-project/Centurion/issues/54#issuecomment-4216622

lchenay commented 12 years ago

"AllowOverride all" is a directive that must be set on vhost.