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

eZ debug

Timing: Jan 18 2025 10:53:52
Script start
Timing: Jan 18 2025 10:53:52
Module start 'content'
Timing: Jan 18 2025 10:53:52
Module end 'content'
Timing: Jan 18 2025 10:53:52
Script end

Main resources:

Total runtime0.8885 sec
Peak memory usage4,096.0000 KB
Database Queries255

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9609180.8047
Module start 'content' 0.00640.7152 768.7656814.4141
Module end 'content' 0.72160.1668 1,583.1797361.2813
Script end 0.8884  1,944.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4343210.0002
Check MTime0.00140.1626210.0001
Mysql Total
Database connection0.00090.099810.0009
Mysqli_queries0.754084.86292550.0030
Looping result0.00260.28892530.0000
Template Total0.859296.720.4296
Template load0.00190.211820.0009
Template processing0.857396.488420.4286
Template load and register function0.00020.022610.0002
states
state_id_array0.00160.178210.0016
state_identifier_array0.00100.116120.0005
Override
Cache load0.00210.23501950.0000
Sytem overhead
Fetch class attribute can translate value0.00180.207650.0004
Fetch class attribute name0.00130.1418180.0001
XML
Image XML parsing0.00250.286850.0005
class_abstraction
Instantiating content class attribute0.00000.0049220.0000
General
dbfile0.01431.6081290.0005
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
17content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
26content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
38content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 90
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs