Forums / Install & configuration / Get index.php as a download file

Get index.php as a download file

Author Message

Niklas Gunnäs

Monday 30 January 2006 1:54:22 am

Have installed ez publish 3.7.3 on a debian system and I have apache, php and mysql up and running. When connecting to server, browser will download index.php as a file instead of showing it. Any ideas?

Felix Laate

Monday 30 January 2006 2:26:08 am

Hi Niklas,

AFAIK this would mean that php is not running on this virtual host (are you using one?). Have you tried to make a

<?php

phpinfo();

?>

and run it on the webserver? Does it give you the normal page with all the php-stuff?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Mark Collins

Thursday 16 March 2006 4:29:26 pm

Hi

I get the same problem and the php infor file gives me:
PHP Version 5.0.3

and the long list of config. and setup details

my httpd.conf file contains:

AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php
AddHandler php5 script .php5

Any ideas? If you email me or Skype me (username: markfresh) I'll show you the URI for the test.php page

thanks in advance

Mark

Mark Collins

Friday 17 March 2006 2:52:30 am

I've noticed that if I try to go to webdav.php I receive the error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /usr/local/home/httpd/vhtdocs/<sitename>.co.uk/ezpublish/lib/ezutils/classes/ezdebug.php on line 158

does this help at all?

thanks

Mark

Mark Collins

Friday 17 March 2006 3:45:08 am

if I run the script

$ cd /path/to/ez_publish
$ bin/modfix.sh

then the page appears broken

http://www.<sitename>.co.uk/ezpublish/index.php

any suggestions?

thanks

(the memory error was to do with the 8Mb limit on php.ini, now solved)

Sascha Frinken

Friday 17 March 2006 6:19:21 am

ez publish 3.7.3 requires PHP 4.4.x It doesn't work with PHP 5.

Mark Collins

Friday 17 March 2006 7:45:17 am

Thank you

I naively presumed that saying must have PHP 4 meant that it must be at least that. I've downgraded my server to 4.3 it's now up and running

thanks again

Mark

eZ debug

Timing: Jan 18 2025 11:15:07
Script start
Timing: Jan 18 2025 11:15:07
Module start 'content'
Timing: Jan 18 2025 11:15:09
Module end 'content'
Timing: Jan 18 2025 11:15:09
Script end

Main resources:

Total runtime1.6977 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0101 587.8359180.8203
Module start 'content' 0.01011.5427 768.6563653.5938
Module end 'content' 1.55280.1448 1,422.2500337.0625
Script end 1.6976  1,759.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.2907210.0002
Check MTime0.00180.1036210.0001
Mysql Total
Database connection0.00120.071310.0012
Mysqli_queries1.601194.30792100.0076
Looping result0.00240.14202080.0000
Template Total1.657097.620.8285
Template load0.00270.156620.0013
Template processing1.654397.443320.8271
Template load and register function0.00010.006810.0001
states
state_id_array0.00080.047810.0008
state_identifier_array0.00170.099220.0008
Override
Cache load0.00230.1379490.0000
Sytem overhead
Fetch class attribute can translate value0.00180.106050.0004
Fetch class attribute name0.00110.065690.0001
XML
Image XML parsing0.00340.202150.0007
class_abstraction
Instantiating content class attribute0.00000.000890.0000
General
dbfile0.00550.3262330.0002
String conversion0.00000.000630.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs