Forums / Install & configuration / some question,any help!

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 ?

eZ debug

Timing: Jan 19 2025 01:19:35
Script start
Timing: Jan 19 2025 01:19:35
Module start 'content'
Timing: Jan 19 2025 01:19:36
Module end 'content'
Timing: Jan 19 2025 01:19:36
Script end

Main resources:

Total runtime1.0973 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.9688180.8359
Module start 'content' 0.00720.9364 769.8047570.1797
Module end 'content' 0.94360.1536 1,339.9844336.7813
Script end 1.0972  1,676.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3510210.0002
Check MTime0.00140.1317210.0001
Mysql Total
Database connection0.00100.090810.0010
Mysqli_queries1.021393.07191970.0052
Looping result0.00200.18221950.0000
Template Total1.065297.120.5326
Template load0.00200.183620.0010
Template processing1.063296.891820.5316
Template load and register function0.00020.021110.0002
states
state_id_array0.00070.066610.0007
state_identifier_array0.00110.101120.0006
Override
Cache load0.00180.1651730.0000
Sytem overhead
Fetch class attribute can translate value0.00180.161430.0006
Fetch class attribute name0.00130.121950.0003
XML
Image XML parsing0.00090.081730.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00200.1835270.0001
String conversion0.00000.000530.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs