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?
 
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
 
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.