URL problem: even cannot log in to admin

Author Message

Yaroslav Markin

Sunday 14 December 2003 6:38:04 am

eZ 3.2-3, PHP4 as CGI, safemode on but all permissions are ok.
.htaccess is on:

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>
<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html))$">
order allow,deny
allow from all
</FilesMatch>
RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)$ index.php
DirectoryIndex index.php

When i try to log in as administrator:
http://host/index.php/plain_admin

It shows me page with node id 2 (all debug modes are on):

[...]
Debug: Fetching node <kernel-content-view>
2
[...]

I tried all the url's like
http://host/index.php/blahblahblah
http://host/index.php/any1_help_me

and so on but CMS always shows me page with node 2, i mean the starting page "eZ publish - plain design Root folder".

What is the problem? Apache configuration, something with php.ini, something wrong with eZ's .ini files?

Help me please, i'm stuck!

James Packham

Monday 15 December 2003 5:21:57 am

Sorry, I may be missing something here but isn't your rewrite rule rewriting everything to be on the end of index.php anyway?

i.e. by typing http://host/index.php/blahblahblah you're effectively writing http://host/index.phpindex.php/blahblahblah? Have you tried without the index.php in your url?

Regards,

James

Yaroslav Markin

Monday 15 December 2003 7:07:02 am

It seems to me no :-(

http://host/plain_admin/
Forbidden
You don't have permission to access /plain_admin/ on this server.

It gotta be something with Apache config, but I really don't know, what is not correct. File ".htaccess" from package..

Well, I tried to insert
echo '<pre>'; print_r($_SERVER); echo '</pre>';
in "index.php", and I got:

---
[REDIRECT_STATUS] => 200
[REDIRECT_URL] => /index.php/plain_admin/
[SCRIPT_FILENAME] => /[pathname censored]/index.php
[SERVER_SOFTWARE] => Apache/1.3.28 (Unix) mod_accounting/0.5 mod_ssl/2.8.15 OpenSSL/0.9.7c mod_deflate/1.0.19
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /index.php/plain_admin/
[SCRIPT_NAME] => /index.php
[PATH_INFO] => /plain_admin/
[ORIG_PATH_INFO] => /index.php/plain_admin/
[PHP_SELF] => /index.php
---

So, I think, RewriteRule is OK, but eZ still shows node 2.. :-(

James Packham

Monday 15 December 2003 7:39:16 am

Yeah, I think you're right, I just tried putting index.php into my location bar like you and it still worked (I also use virtual hosting).

If I were you, (based on the info you've given me) I'd try and rewrite my virtualhost section in my http conf file. Comment out your old virtualhost rules (including filesmatch) and try something like:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName mydomain.com:80
ServerAlias www.mydomain.com

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php

DocumentRoot /var/www/ezpublish
</Directory>
</VirtualHost>

(and modify for your setup obviously)

If it works then try building on it your old rules until something stops working. If that doesn't work... well I'm sure someone else with a better idea than me can help out... ;)

Regards,

~James~

Yaroslav Markin

Monday 15 December 2003 8:01:41 am

I've tried. My .htaccess:

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

Still nothing, fetching node 2..

Lazaro Ferreira

Friday 19 December 2003 12:02:28 am

Hi,

I'm short of knowledge on this, but I had experienced the same problem a week ago, there is a patch for EZP on PHP-CGI setup
at http://www.ez.no/developer/ez_publish_3/forum/install_configuration/my_final_patch_for_phpcgi

I have applied with success, but now I have another issue regarding the URL format and the performance of the installation

Hope this help

Lazaro
http://www.mzbusiness.com

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

eZ debug

Timing: Jan 19 2025 04:27:56
Script start
Timing: Jan 19 2025 04:27:56
Module start 'layout'
Timing: Jan 19 2025 04:27:56
Module start 'content'
Timing: Jan 19 2025 04:27:57
Module end 'content'
Timing: Jan 19 2025 04:27:57
Script end

Main resources:

Total runtime1.3092 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.2969152.6406
Module start 'layout' 0.00500.0023 741.937539.4766
Module start 'content' 0.00731.3003 781.4141619.4297
Module end 'content' 1.30760.0015 1,400.843816.1250
Script end 1.3092  1,416.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2359160.0002
Check MTime0.00130.0958160.0001
Mysql Total
Database connection0.00070.050010.0007
Mysqli_queries1.232494.1357680.0181
Looping result0.00070.0549660.0000
Template Total1.276097.520.6380
Template load0.00200.155320.0010
Template processing1.273997.308020.6370
Template load and register function0.00020.015410.0002
states
state_id_array0.00150.116910.0015
state_identifier_array0.00110.082320.0005
Override
Cache load0.00190.1465900.0000
Sytem overhead
Fetch class attribute can translate value0.00050.039830.0002
Fetch class attribute name0.00090.069570.0001
XML
Image XML parsing0.00060.044630.0002
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00070.0536160.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs