some question,any help!

Author Message

kevin wei

Tuesday 25 November 2003 1:13:57 am

1. i install ez 3.2.3 on my pc,server details:
apache 1.3 ,php 4.2.0,mysql 3.23,win2k
now 127.0.0.1 is ok but when i click a link like this:
http://127.0.0.1/index.php/content/view/full/48/ ,error response:The server encountered an internal error or misconfiguration and was unable to complete your request.
i have active mod_rewite in apache,what happened?

2. i config httpd.conf for vhost as below:
<VirtualHost 127.0.0.1>
<Directory d:/server/ez/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

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

ServerAdmin root@localhost
DocumentRoot d:/server/ez/
ServerName ez.mysrv.srv
</VirtualHost>
but if i input ez.mysrv.srv in browser,it cannot find this server,did i need to install DNS server on my pc?

thanks!

Marco Zinn

Tuesday 25 November 2003 2:53:47 am

Hi,
I think, there is a small difference between Unix and Windows Apache Config about Rewrite Rule.
Try
RewriteRule !\.(gif|css|jpg|png|jar)$ d:/server/ez/index.php
instead of just
RewriteRule !\.(gif|css|jpg|png|jar)$ index.php

For the "name": If you want call your site by using host names, you need a DNS or -as you are probably using a standalone PC- you can find and append the "hosts"-files (not hosts.txt or so, just "hosts"). This is somewhere in your windows directory and you must append a line like
ez.mysrv.srv 127.0.0.1
After that, you should be able to enter your name in your webbrowser. You can test this before, when you enter "ping ez.mysrv.srv" at the DOS prompt, which should show you, that the name is resolved to 127.0.0.1
But -when you use URL-bases sitematching- you do not need names, you can use "localhost" or 127.0.0.1 (which is the same).
Does this help?

Marco
http://www.hyperroad-design.com

kevin wei

Tuesday 25 November 2003 10:48:40 pm

thanks marco
i have done these:
1. append 2 line in hosts
127.0.0.1 localhost
127.0.0.1 mysrv.srv
127.0.0.1 ez.mysrv.srv
restart win2k

2. modify httpd.conf
<VirtualHost 127.0.0.1>
<Directory d:/server/ez/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar)$ d:/server/ez/index.php

ServerAdmin root@localhost
DocumentRoot d:/server/ez/
ServerName ez.mysrv.srv
</VirtualHost>
restart apache

now ping mysrv.srv it's ok
ping ez.mysrv.srv it's ok

but in browser: http://mysrv.srv/,http://127.0.0.1, http://ez.mysrv.srv
all get response:
Forbidden
You don't have permission to access / on this server.

why i add only a virtual host to d:/server/ez ,i cannot access server root (d:/server) with mysrv.srv

BTW, i just rename .htaccess_root to .htaccess in ez,and some info about DB in site.ini,do i need to modify any other file ?

thanks1

kevin wei

Tuesday 25 November 2003 11:25:45 pm

i find this caused by this line:
RewriteRule !\.(gif|css|jpg|png|jar)$ d:/server/ez/index.php
if i comment out it ,i can access http://ez.mysrv.srv
but all link like :http://ez.mysrv.srv/ez/index.php/content/view/full/50/
get error:The server encountered an internal error or misconfiguration and was unable to complete your request.

what will i do ?

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:44:00
Script start
Timing: Jan 19 2025 04:44:00
Module start 'layout'
Timing: Jan 19 2025 04:44:00
Module start 'content'
Timing: Jan 19 2025 04:44:00
Module end 'content'
Timing: Jan 19 2025 04:44:00
Script end

Main resources:

Total runtime0.0179 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1563152.6250
Module start 'layout' 0.00610.0038 741.781339.4609
Module start 'content' 0.01000.0055 781.242293.3359
Module end 'content' 0.01540.0024 874.578134.3047
Script end 0.0178  908.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.7044140.0002
Check MTime0.00116.3576140.0001
Mysql Total
Database connection0.00105.365710.0010
Mysqli_queries0.002916.372630.0010
Looping result0.00000.083910.0000
Template Total0.001810.210.0018
Template load0.00105.434910.0010
Template processing0.00094.769210.0009
Override
Cache load0.00063.578910.0006
General
dbfile0.00031.613780.0000
String conversion0.00000.055940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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