17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 10454 Views |
-
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on Line 518

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.
-
Re: Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on Line 518

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 .phpYou might want to ask your host about issues with setting up PHP5 as they will be able to walk you through it
-
Re: Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on Line 518

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?
-
Re: Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on Line 518

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
| 10454 Views | ||
|
Page:
1
|
Go to Top |


