Forums / Install & configuration / eZ publish and PHP in FCGI mode, install problem

eZ publish and PHP in FCGI mode, install problem

Author Message

Oleg Kulikov

Saturday 25 February 2006 11:13:40 am

Hi all!
Can you help me, with my problem.

Let’s start:
1) I downloaded ezpublish-3[1].6.5.zip
2) Unzip with winrar
3) Upload to my server in htdocs folder
4) Run setup wizard.
Problem: Your system is not optimal, if you wish you can click the Finetune button. This will present hints on how to fix these issues.
5) Click Finetune button:
Problem - Missing database handlers
Register Globals is enabled

I can’t edit php.ini on the server, because it’s virtual hosting.
And i can’t write php_value register_globals 0 into .htaccess, because "Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration"

Ok, click Next >

6) Outgoing E-mail: Sendmail/MTA - it`s ok for me.
click Next >
7) Database initialization: Create new Database (mysql)
click Next >
8) Language support - Choose Russian as main.
click Next >
9) Site type - Choose Shop
click Next >
10) Site functionality - Choose:
- Contact us
- Contacts
- Files
- Forum
- Image gallery
- Links
- News
- Polls

click Next >

10) Site access configuration - URL
click Next >
11) Site details: OK
click Next >
12) Site administrator - OK
click Next >
13) Site security - "Your site is not running in a virtual host mode, this is insecure. It is recommended to run eZ publish in virtual host mode. If you do not have the possibility to use virtual host mode, you should follow the
instructions below about how to install an .htaccess file. The .htaccess file tells the web server to restrict the access to certain files. "

Ok, I copy htaccess_root to htaccess, but i close "php_value allow_call_time_pass_reference 0", because this string calling 500 error.

click Next >

14) Site registration - Ok, send registration

Site info:
Template - Shop
Title - Site
URL - http://www.diamas.ru/index.php/shop
Admin URL - http://www.diamas.ru/index.php/shop_admin
Access type - url
Access value - shop
Functionality - contact_us, contacts, files, forum, gallery, links, news, poll, products

PHP info:
Version - 4.3.10-16

OS info
Name - Linux c01n03 2.6.14.2 #3 SMP PREEMPT Mon Nov 14 07:08:28 EST 2005 i686
CPU Type - Intel(R) Xeon(TM) CPU 3.06GHz
CPU Speed - 3066.215 MHz
Memory Size - 4121477120 (3.84 GB)

Database info:
Type - MySQL
Driver - ezmysql

Email info:
Transport - sendmail

Image conversion:
ImageMagick was found and used.
Path - /usr/bin
Executable - convert
ImageGD extension was found and used.

Regional info:
Primary - rus-RU
Additional - rus-RU

Critical tests

directory_permissions - Success
phpversion - Success
database_extensions - Success
image_conversion - Success
open_basedir - Success
safe_mode - Success
memory_limit - Success
execution_time - Success
magic_quotes_runtime - Success
allow_url_fopen - Success
accept_path_info - Success
php_session - Success
file_upload - Success

Other tests:

php_magicquotes - Success
zlib_extension - Success
mbstring_extension - Success
imagegd_extension - Success
imagemagick_program - Success
database_all_extensions - Failure
php_register_globals - Failure
texttoimage_functions - Success

click Next >
15) Creating sites - The setup wizard was not able to complete the creation of your selected sites.

The following errors were detected:

EZSW-004
Failed inserting data to mysql
Table 'ezapprove_items' already exists
EZSW-040
Failed to initialize site package shop
If you think you have fixed the errors you can try and click the "Retry" button

MySQL was empty!
ok, push Retry button
- Nothing.

16) I start installation again with English_GB language - and... all OK, but all url like http://diamas.ru/index.php/shop/links, and when i click - i see:
Module not found
The requested module index.php could not be found.

Possible reasons for this are:

The module name was misspelled, try changing the URL.
The module does not exist on this site.
This site uses siteaccess matching in the URL and you didn't supply one, try inserting a siteaccess name before the module in the URL .

But, if i write url like http://diamas.ru/index.php?/shop/links - All OK.

Q: How i can edit .htaccess file, for good work?

My site here http://www.diamas.ru, but link must be like http://www.diamas.ru/index.php.... This is my second problem )))

HELP! :-)

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