URL problem: even cannot log in to admin

URL problem: even cannot log in to admin

Sunday 14 December 2003 6:38:04 am - 5 replies

Author Message

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

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.