error while installing haloacl in mediawiki

When I tried to install the haloacl in mediawiki in my server I got error.
Version of my server
php version - 5.2.13
my sql (library) - 5.0.67
my sql (header) - 5.0.32
1. First i tried  to install the haloacl in mediawiki with deployment framework (ver: Smw deploy 1.1)
       When running the ssh in putty : smwadmin.sh -i haloacl
I got the following error
X-Powered-By: PHP/4.4.9
Content-type: text/html
<br />
<b>Parse error</b>:  syntax error, unexpected '{' in <b>/homepages/38/d300239046/htdocs/development/mediawiki/deployment/tools/smwadmin.php</b> on line <b>188</b><br />
As I came to check for php, i can’t find such error.
2. Second I tried to install the haloacl in mediawiki manually (Haloacl 1.1)
when running the ssh in putty : php HACL_Setup.php
I get the following error
X-Powered-By: PHP/4.4.9
Content-type: text/html
<br />
<b>Parse error</b>:  syntax error, unexpected T_OBJECT_OPERATOR in <b>/homepages/38/d300239046/htdocs/development/mediawiki/extensions/HaloACL/maintenance/HACL_Setup.php</b> on line <b>43</b><br />
As I came to check for php, i can’t find such error.
RajeshKannaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SwafnilCommented:
It seems as if you are running two different PHP versions on your server, the script identifies your running PHP version as PHP/4.4.9. Line 188 in smwadmin.php contains a try catch block and catching errors was introduced with PHP 5, so I bet that your path to php-cgi.exe is wrong and points to an old directory.
0
RajeshKannaAuthor Commented:
All those softwares worked in Xampp
Xampp php version :5.3
but why not in my web site sever..
what might be the reason?
Thanks
0
SwafnilCommented:
create an info.php with phpinfo() and check its output, there should be a line "Loaded Configuration File" telling you which php.ini is currently in use; this will probably give you a hint if a wrong version is being used.
Also check if there is a configuration value _ENV["PHPRC"], if it's set this will point to the currently loaded PHP interpreter.
0
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

RajeshKannaAuthor Commented:
As u mentioned I tried with phpinfo() file with my local server & my web server but it differs.

In my local server I got php but in my web server it shows php5..

Do there any solution for it? thanks...
0
SwafnilCommented:
What do you exactly mean with "my local server" and "my web server"? Are these two different machines or do you mean that you got two different PHP versions when php files are executed through CLI or CGI?

So your current PHP setup is:

local web server: PHP4
remote web server: PHP5

?

In this case the deployment framework should work when you try to deploy on your remote web server and it fails if you use your local web server. If you don't have to rely on some PHP4 functions, I would advise to upgrade the PHP version on your local web server to PHP5 which is a pretty straightforward process: backup your old PHP directory, stop Apache, remove the contents from the old directory, unpack the contents from the PHP5 installation into the PHP directory, modify php.ini to fit your old php.ini settings, restart Apache and check phpinfo()'s output again.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SwafnilCommented:
And if you are using Apache you will have to change Apache's PHP Handler when changing from PHP 4 to PHP 5:

change your old entry

LoadModule php4_module C:/PHPDIR/sapi/php4apache2.dll

into

LoadModule php5_module C:/PHPDIR/php5apache2_2.dll
0
RajeshKannaAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.