eZ publish and PHP in FCGI mode, install problem

eZ publish and PHP in FCGI mode, install problem

Saturday 25 February 2006 11:13:40 am - 16 replies

Modified on Tuesday 28 February 2006 1:14:47 am by Oleg Kulikov

Author Message

Gabriel Ambuehl

Saturday 25 February 2006 1:06:13 pm

Your server likely uses PHP in CGI mode where index,php/something doesn't work, only index.php?/something.

I think that installing PHP as Apache module will fix the problem right away.

Perhaps some mod_rewrite trickery would help as well (something like replacing index.php with index.php? in the default mod_rewrite config MIGHT work) but I'm really not into mod_rewrite so this is just a wild guess.

As for diamas.ru not working, index.php will have to be added as DirectoryIndex in Apache for that.

For both things, talk to your sysadmin.

Visit http://triligon.org

Oleg Kulikov

Sunday 26 February 2006 3:28:06 am

May be i can change all link and action (form) on index.php?/something???

Because, the system is very nice, but not working =)))

> I think that installing PHP as Apache module

I can`t reinstall PHP on common web-server )))

>something like replacing

Now my .htaccess file as default:

....

...

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php

I try to change index.php on index.php?, but it`s doesn`t work ((((((

With DirectoryIndex problem (403) it`s ok....

O-la-la... =(

Oleg Kulikov

Sunday 26 February 2006 3:29:48 am

My sysadmin sad, that i can change php.ini file for my web-space... May be it`s help??

Sebastian Picklum

Sunday 26 February 2006 8:37:46 am

Putting the following code in a .htaccess file should make everything work in cgi-mode:

RewriteEngine on  
RewriteRule !^index\.php.* - [C] 
RewriteRule !^webdav\.php.* - [C]  
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C] 
RewriteRule (.*) /index.php?/$1&%{QUERY_STRING} [L]

sp@php.net

Oleg Kulikov

Monday 27 February 2006 4:39:02 am

Thank`s a lot Sebastian, but it`s doesn`t work (((((

My .htaccess:

# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#

RewriteEngine on
RewriteRule !^index\.php.* - [C]
RewriteRule !^webdav\.php.* - [C]
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C]
RewriteRule (.*) /index.php?/$1&%{QUERY_STRING} [L]

Oleg Kulikov

Monday 27 February 2006 4:43:57 am

And site http://www.diamas.ru

Łukasz Serwatka

Monday 27 February 2006 5:00:30 am

eZ publish should detec PHP in CGI automatically and add ? to URL. Try remove all files from var/cache and var/(shop)/cache then access your site.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Oleg Kulikov

Monday 27 February 2006 5:11:50 am

Hello Lukasz,
Thank`s
I deleted all files and folder from var/cache and from var/shop/cache. And nothing =(

Oleg Kulikov

Monday 27 February 2006 5:35:15 am

may be i can show for ez, that i`am using PHP-CGI, because he doesn`t see this... i think... I try second time delete all cache... But nothing... =(

Łukasz Serwatka

Monday 27 February 2006 5:48:01 am

Which version of Apache do you use?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Oleg Kulikov

Monday 27 February 2006 5:59:50 am

SERVER_SOFTWARE Apache/1.3.33 (Debian GNU/Linux) AuthMySQL/4.3.9-2

phpinfo: http://dev.diamas.ru/phpinfo.php

Łukasz Serwatka

Monday 27 February 2006 6:20:06 am

Try solution mention in this bug report:
http://ez.no/community/bugs/no_input_file_error_when_using_fcgi

Then clear the cache.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Oleg Kulikov

Monday 27 February 2006 6:41:04 am

ALELUYA!!! )))))) BINGO!!! ))))) THANK`S!!!!! It`s working!! ))))))

Łukasz Serwatka

Monday 27 February 2006 6:55:22 am

Great ;) This bug will be fixed in next eZ publish version.

Could you change this forum topic, to more adequate to problem? Will be useful for other forum readers.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Oleg Kulikov

Monday 27 February 2006 6:58:54 am

Ok! I`ll do it + i can make russian version.
Q: May be we can make russian version of ez? For support russian users and promote eZ system?

Łukasz Serwatka

Monday 27 February 2006 7:08:00 am

Q: May be we can make russian version of ez? For support russian users and promote eZ system?

No objections here ;) You can contact me via e-mail ls [at] ez [dot] no
We can discuss your ideas.

eZ publish already has support for Russian language. Check eZ publish translations page

http://ez.no/community/translations

Unfortunately ez.no does not support russian characters, topic in english will be good ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.