Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on Line 518


Reply


4 Posts   11460 Views

Avatar
trunker

Community Member, 2 Posts

30 June 2008 at 1:19pm

Problems with install on Godaddy shared linux server running PHP4 and PHP5.

Error upon landing on the install.php file

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/m/o/o/moonblink/html/paradisecms/install.php on line 518

I have tried editing the .httpaccess file to:

AddType application/x-httpd-php5 .php

But now it just wants to download the install.php file and does not bring anything up.

Can any one assist?

I am running the latest release of silverstripe, this is a brand new install in a subdir not the root. Thanks.

Avatar
Willr

Forum Moderator, 5513 Posts

30 June 2008 at 2:24pm

The PHP5 is setup wrong if its asking you to download.

I have tried editing the .httpaccess file

Dont know about .httpaccess if thats something godaddy uses or what but normally you use the .htaccess file which something like

AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 .php

You might want to ask your host about issues with setting up PHP5 as they will be able to walk you through it

Avatar
trunker

Community Member, 2 Posts

30 June 2008 at 10:36pm

Sorry what I mean was the .htaccess file. I was burnt out last night. I have tried adding that code to the .htaccess file, it is still doing the same thing, sometimes just a blank white screen.

Not sure how I can change how PHP5 is setup on Godaddys server, they really do not give you any options to change that.

you can see what I am referring to here http://www.paradiseprotech.com/paradisecms/

Any other ideas?

Avatar
Willr

Forum Moderator, 5513 Posts

1 July 2008 at 8:58am

Its prompting me to down the file so the handler for .PHP isnt setup correctly, I think you need to use AddHandler rather then AddType in your code

AddHandler x-httpd-php5 .php

See http://help.godaddy.com/article/1082.