Published

23 April 2014

Sharing

Introduction

This software may be downloaded on [OrbitScripts].

Installation

  • Read readme.txt in the main installation directory.
  • Install PDO sqlite, SimpleXML...
  • If you use a recent php installation (for example php 5.3 or 5.4), you may encounter the following warnings:
    • disable disable_functions
    • mysql_escape_string => must be replace by mysql_real_escape_string
  • Enable mod_rewrite
  • Allow .htaccess

disable disable_functions

In /etc/php5/apache2/php.ini, find disable_functions and set it to nothing:

disable_functions =

mysql_escape_string

Just replace mysql_escape_string with mysql_real_escape_string:

replace "mysql_escape_string" "mysql_real_escape_string" -- system/database/drivers/mysqli/mysqli_driver.php
replace "mysql_escape_string" "mysql_real_escape_string" -- system/database/drivers/zend/zend_driver.php
replace "mysql_escape_string" "mysql_real_escape_string" -- system/database/drivers/mysql/mysql_driver.php

Other warnings may be ignored

enable mod_rewrite

a2enmod rewrite

enable .htaccess

If you have an error about file that doesn't exist when trying to access http://.../openadserver/, it simply means the .htaccess doesn't work. To fix this problem, in /etc/apache2/sites-enabled/000-default, just add AllowOverride All to the main Directory entry:

<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

Conclusion

just reload apache2 configuration with:

service apache2 reload

Ressources




blog comments powered by Disqus