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.