Elxis CMS Forum

Support => Technical support => Topic started by: c8620p on October 08, 2008, 10:19:54

Title: Error in uploading site from local to server
Post by: c8620p on October 08, 2008, 10:19:54
I did everything (I believe) the Greek book writes for transfering my work but I get this msg:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/theotran/public_html/includes/floodblocker.class.php on line 43
This file has this in line 43:
// The directory where log files will be saved. Must have permissions to write.
    public $logs_path;
What have I done wrong?
Is it in my Dbase or with the permisions of the files
Folders: 755
Files: 644
/tmpr:777 (only index)
/cache:777 (only index)
Thanks in advance.
P.S. I have never activated Floodblocker in local setup!
Title: Re: Error in uploading site from local to server
Post by: datahell on October 08, 2008, 13:10:32
I think you have PHP4. Elxis 2008.1 requires PHP 5.
Title: Re: Error in uploading site from local to server
Post by: c8620p on October 09, 2008, 00:14:22
Is there something I can do or must I contact with my hosting manager?
Title: Re: Error in uploading site from local to server
Post by: datahell on October 09, 2008, 00:18:25
You should contact your hosting provider and tell him to install PHP 5 (if it is not already installed) and enable PHP 5 on your site (this can be done with an htaccess file). PHP 5 can co-exist with PHP 4 on the same server.
Title: Re: Error in uploading site from local to server
Post by: c8620p on October 09, 2008, 00:19:37
Can I send you pm now?
Title: Re: Error in uploading site from local to server
Post by: datahell on October 09, 2008, 00:45:45
I already answered you, check your messages!

Here is how to tell the web server (Apache) to run php5 instead of php4 if php4 co-exists with php5 on the same server and php4 has been set as default:

Edit your existing .htaccess file, or create one if not exists, and add at the top if it one of these lines (ONLY ONE):

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

The first one is suitable if PHP has been installed as an apache module
The second one is suitable if PHP runs under CGI mode.
The last one is for xmapp

Check them one-by-one till you find the one that works on your system.

PHP5 installation or php4 upgrade to php5 is very easy and if you have a control panel like cpanel this is a piece of cake. On cpanel just update apache from within WHM. To manually install php5 check the hundreds of guides exists on the internet like this one: http://forums.deftechgroup.com/showthread.php?t=2103 (http://forums.deftechgroup.com/showthread.php?t=2103) (I did nt check if it is a good enough, this is just a sample).
Title: Re: Error in uploading site from local to server
Post by: c8620p on October 09, 2008, 01:03:15
I saw your message and I was trying to configure my htaccess.txt file with your details.
Nothing!
So I wend to cpanel and I get the image (see the attachment) and my pure brain tells me that my server does not have PHP5 installed!
Am I right?
And if so this means that I can not setup the new ELXIS?
I also attach the htaccess.txt file with any change as I have it in my root of ELXIS on my server.

[attachment deleted by admin]
Title: Re: Error in uploading site from local to server
Post by: datahell on October 09, 2008, 01:12:09
I know you have PHP4, I understood this from the error message on your first post. PHP4 can not handle private, public and protected visibility declarations as well as the static keyword, this is the reason of the error message. So, unless php5 is installed on your server you can not run Elxis 2008.1 and any of the extensions that are published at elxis-downloads.com that are for php5.

Once php5 is installed just add AddHandler application/x-httpd-php5 .php on the top of your .htaccess file and Elxis 2008.1 will run just fine. If you have php4 you should stay at Elxis 2008.0.
Title: Re: Error in uploading site from local to server
Post by: c8620p on October 09, 2008, 01:18:46
 ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Thanks for your time.
I'm sending an email to my "server manager" ;)
P.S. I will inform the community what happened.
Title: Re: Error in uploading site from local to server
Post by: c8620p on October 10, 2008, 10:37:08
...Working now on ELXIS 2008 and not 2008.1 (for the moment)...