Forums / Install & configuration / URL problem: even cannot log in to admin

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

eZ debug

Timing: Jan 31 2025 08:20:25
Script start
Timing: Jan 31 2025 08:20:25
Module start 'content'
Timing: Jan 31 2025 08:20:25
Module end 'content'
Timing: Jan 31 2025 08:20:25
Script end

Main resources:

Total runtime0.1198 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.0703180.8203
Module start 'content' 0.00650.0058 768.890697.9609
Module end 'content' 0.01230.1075 866.8516532.3750
Script end 0.1197  1,399.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.8542200.0002
Check MTime0.00141.1504200.0001
Mysql Total
Database connection0.00070.621210.0007
Mysqli_queries0.078365.33811410.0006
Looping result0.00080.69321390.0000
Template Total0.107189.410.1071
Template load0.00090.742210.0009
Template processing0.106288.652110.1062
Override
Cache load0.00060.531810.0006
Sytem overhead
Fetch class attribute can translate value0.00100.829710.0010
XML
Image XML parsing0.00020.196210.0002
General
dbfile0.00413.4463200.0002
String conversion0.00000.005030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs