Forums / Install & configuration / "403 Forbidden" error after installation

"403 Forbidden" error after installation

Author Message

Lech Jonczyk

Wednesday 18 January 2006 6:23:12 am

I installed ez publish and it works fine when I enter full url:
www.foo.com/index.php/

But when I simply enter:
www.foo.com

I get "403 Forbidden" error.

What's wrong?

Lech Jonczyk

Wednesday 18 January 2006 7:42:02 am

I figured it out.

This hint in .htaccess helped me a bit :-)

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

#<Files "ezpublish-3.6.0">
#   order allow,deny
#   allow from all
#</Files>

Allan Dean

Thursday 09 February 2006 9:17:52 am

I have slightly different problem,

When I copied the file to .htaccess I was not able to access the directory or pages in it.

Trying to access the root page without the index.php appended I got a screen about Apache.

When I do append the index.php I got a forbidden access error.

I wonder if the installation must be in a directory other than root. But I see no documentation that says that.

Even so, following the instructions:

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

I uncommented the lines and changed it to the base name "htdocs"

<Files "htdocs">
order allow,deny
allow from all
</Files>

Still it does not work.

without index.php I get the apache screen, with index.php I get a "403 forbidden" error

Allan Dean

Thursday 09 February 2006 10:21:32 am

An afterthought.

eZ Publish 3.6.5
Linux Fedora (Redhat Fedora) Core 3
Apache is 2.0.52
mysql is 3.23.58
php 4.3.11

During installation at the system check I ignored two error messages:

1. allow_url_fopen ini setting is disabled

2. AcceptPathInfo disabled or running in CGI mode

(the webmaster on the shared host said he enabled AcceptPathInfo in the Apache config file, but I still got the warning during installation.)

Also during installation,
During installation I was prompted to chmod some folders in the 'settings' subdirectory. That was done with no trouble.

All the php files in my root directory, including index.php all have 644 permission settings.

Allan Dean

Thursday 09 February 2006 11:37:17 am

I wonder if the problem is with the version of php I am using?

I am using 4.3.11

It looks like ezp 3.6.5 requires PHP 4 version 4.3.4 - 4.4

Would this be the issue?

eZ debug

Timing: Jan 18 2025 22:39:34
Script start
Timing: Jan 18 2025 22:39:34
Module start 'content'
Timing: Jan 18 2025 22:39:35
Module end 'content'
Timing: Jan 18 2025 22:39:35
Script end

Main resources:

Total runtime0.7449 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0104 589.2813180.8203
Module start 'content' 0.01040.6221 770.1016504.6719
Module end 'content' 0.63250.1124 1,274.7734338.0859
Script end 0.7449  1,612.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5940210.0002
Check MTime0.00180.2367210.0001
Mysql Total
Database connection0.00170.221910.0017
Mysqli_queries0.672990.33772000.0034
Looping result0.00160.21441980.0000
Template Total0.708695.120.3543
Template load0.00200.270620.0010
Template processing0.706694.857520.3533
Template load and register function0.00010.016310.0001
states
state_id_array0.00110.153410.0011
state_identifier_array0.00140.189320.0007
Override
Cache load0.00180.2373510.0000
Sytem overhead
Fetch class attribute can translate value0.00100.133230.0003
Fetch class attribute name0.00110.145250.0002
XML
Image XML parsing0.00050.065830.0002
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00240.3183210.0001
String conversion0.00000.001230.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs