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

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 31 2025 01:28:55
Script start
Timing: Jan 31 2025 01:28:55
Module start 'layout'
Timing: Jan 31 2025 01:28:55
Module start 'content'
Timing: Jan 31 2025 01:28:55
Module end 'content'
Timing: Jan 31 2025 01:28:55
Script end

Main resources:

Total runtime0.0209 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.2578151.2266
Module start 'layout' 0.00440.0032 739.4844220.7188
Module start 'content' 0.00770.0120 960.20311,001.9609
Module end 'content' 0.01960.0012 1,962.164137.9922
Script end 0.0209  2,000.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.8753140.0002
Check MTime0.00125.5114140.0001
Mysql Total
Database connection0.00073.336910.0007
Mysqli_queries0.002210.511130.0007
Looping result0.00000.047910.0000
Template Total0.00094.410.0009
Template load0.00073.174010.0007
Template processing0.00021.167010.0002
Override
Cache load0.00042.135710.0004
General
dbfile0.00125.625480.0001
String conversion0.00000.029640.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