Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install on 1&1 Servers not possible
#1
Hi everyone,
Fist I would like to thank to all people involved in Getsimple, its the easyest CMS system you can get and its very fun to play with it.

Currently I'm trying to install the latest release 3.0 on my hosting at 1&1 and I get this Failure message:

Code:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/19/d216990089/htdocs/mas/admin/inc/basic.php on line 148
Server Details can be found here: http://www.ma-service.es/test.php


I have no clue what could be the problem, I tried also with the 2.3 version but I get the same problem
Are there any restrictions?

Thanks you all for your help and support
Phil from Spain.
Reply
#2
This means that the server is running PHP4. Even though your host may be saying its using PHP5 - there might still be things that you need to configure inside .htaccess or your cpanel.

search this forum... this error has been discussed before
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
ccagle8 Wrote:This means that the server is running PHP4. Even though your host may be saying its using PHP5 - there might still be things that you need to configure inside .htaccess or your cpanel.

search this forum... this error has been discussed before

Thank so much for your fast reply, everything ist running fine now.
1&1 has now activated php5 and every thing is fine

wish you good luck with your GS Project, i love it!
Reply
#4
visdelou Wrote:
ccagle8 Wrote:This means that the server is running PHP4. Even though your host may be saying its using PHP5 - there might still be things that you need to configure inside .htaccess or your cpanel.

search this forum... this error has been discussed before

Thank so much for your fast reply, everything ist running fine now.
1&1 has now activated php5 and every thing is fine

wish you good luck with your GS Project, i love it!

Visdelou,

it's good that it is ok for you now!

I have added this topic to the WIKI, as the situation is quite typic ...

see here: http://get-simple.info/wiki/installation...webhosters
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
Normally with 1 & 1 you can change the parsing of PHP4 to PHP5 by adding the following lines to your .htaccess:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

Then it works automatically! I checked this this my above URL

Tom / tomsbikecorner.de
Reply
#6
Thanks for sharing the info, Tom!

Edit: Added the tip to the wiki.
Reply
#7
TomG Wrote:Normally with 1 & 1 you can change the parsing of PHP4 to PHP5 by adding the following lines to your .htaccess:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

Then it works automatically!

Tom

Thanks Tom. I emailed 1 & 1 who advised PHP5 was running on my server and I still got the same error message, so I did what you suggested and It's running fine now - probably saved me waiting around for 12 hours at a time for 1 & 1 to reply!! Thanks again
Reply
#8
Hi all -

i am on 1und1 as well. but cant get along with solving it myself

sorry to come up with the same question again. but i did the research and applied all settings and the install process run trough till sending me the password.

after the install process i receive the error message:

Code:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /.../htdocs/landing_page_mki/admin/inc/common.php on line 19

thats my .htaccess file: (i also changed all .htaccess files in the whole sub-directory to include the php 5)

Code:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
        Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
Reply
#9
a good test is testing step by step

1) what is your actual PHP-version?

2) take off mod_rewrite

if it is working without mod_rewrite, you have to check this point:

3) is "landing_page_mki" a subdirectory of your server root? If not, you have to edit the ReWriteBase in .htaccess

Code:
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#10
Connie Wrote:a good test is testing step by step

1) what is your actual PHP-version?

2) take off mod_rewrite

if it is working without mod_rewrite, you have to check this point:

3) is "landing_page_mki" a subdirectory of your server root? If not, you have to edit the ReWriteBase in .htaccess

Code:
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /

thank you for your respond and your help to get me on board with getSimple CMS


php version: 5.2.17

see screenshot i have in my first post.

i got it running now.

I guess it is my mistake!

i changed the temp.htaccess file BEFORE the installation to .htaccess with adding the php 5 handler to enable php 5 in 1und1 account. the installation works fine.

after installation i never checked the .htacces file again - but now. It was empty. so i replaced it again- now it works and i am running on GetSimple CMS.
Reply
#11
that's good!
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 2 Guest(s)