Premium website builder and PhpWiki incompatibility?

Asked by:
Greenbytes / 19 Points
2012-09-04 12:31 pm EST
I have started to build my website with the builder, and want to use PhpWiki along with it.

Unfortunately, PhpWiki generates warnings when using PHP 5.3:
Deprecated: Function ereg_replace() is deprecated in /home/zevoge5/public_html/wiki/lib/stdlib.php on line 558

Trying PHP 5.4 causes the Wiki to completely fail:
Fatal error: Call to undefined function import_request_variables() in /home/zevoge5/public_html/wiki/lib/config.php on line 10

So PHP 5.2 seems to be the only choice available to be able to use this Wiki. This, however, breaks my main website, created in Webhostinghub's Builder:
Site error: the file /home/zevoge5/public_html/init.php requires the ionCube PHP Loader to be installed by the site administrator.

How can I get both of these parts of my site to work correctly?

To ask this user for more information, please first login.

To submit an answer, please login.



16,459 Points
2012-09-04 1:37 pm EST
Hello Greenbytes,

When you see the word 'deprecated', it means that the function will not be available in the next release. So, the reason it completely fails in PHP5.4 is because the function does not exit in that version.

It's kind of complicated issue, but I researched the issue with a T2s tech and he says it's possible to control the different versions of PHP using the php.ini file and .htaccess file. The .htaccess controls the version you're using. So, if you place the version of the PHP 5.2 settings for .htaccess file and PHP.INI in the WIKI folder, then keep the newer version of PHP in the public_html, then you should be able to make this work.

Make sure that you make the PHP.INI file recursive to the files in the WIKI folder. You can do that with this line in the top of the .htaccess file:

suPHP_ConfigPath /home/username/pathtophpini

With your path, it should be suPHP_ConfigPath /home/zevoge5/wiki/

To summarize, what you will do is first load the 5.2, then copy the .htaccess file and php.ini file into the WIKI folder. Make the above change to your .htaccess file.

Then upgrade and make sure that the files are correct for 5.3 (or 5.4) in public_html. This means that you in essence will be using php 5.2 in side the WIKI site and 5.3/5.4 in the public_html folder. Don't make the PHP.INI recursive in your main site (the builder site).

I hope this is clear! If you need further assistance, please let us know!

If you have any further questions, please contact technical support or leave a comment at the bottom of the page.


Arnel C.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.