Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Directory problems
#1
I am running phpmotion sites, and right after isntall I recieve a error as follows,
Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/usr/lib/php5/20060613+lfs) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/mydomain.com) in /var/www/vhosts/mydomain.com/mydomain.com/httpdocs/classes/config.php on line 2
extension_dir does not exists /usr/lib/php5/20060613+lfs

I can get around this by commenting out the base url in apacheehcp .conf, but as soon as a cron runs it over writes my changes and cause the error to return, is there a better way to stop this error or stop the over write?

Restored from old drupal forum, for user uid:2722 username:clebarron
You may reset your password to access your new account here.
Reply
#2
To change settings about apache config, do NOT edit apachehcp.conf, since it is overwritten each time ehcp daemon makes an iteration.. or a new domain is setup.

to change apache config, use apachetemplate file instead.. that file is used to build apachehcp.conf . But, be careful that, it is used by all domains in your server. if you wish to change some apache config only for some of your domains or one of your domains, then, use custom http, or "edit apache template for this domain" after selecting your domain in ehcp gui.

BUT:
Know that, removing opeb_basedir restriction reduces your server security. Instead, you should try things/scripts work with that setting.

I will try a solution for this.. basically, You need to make phpmotion work with "local files of php" , not system files.. you need to copy/symlink those files to inside domain folder..

Restored from old drupal forum, for user uid:2722 username:clebarron
You may reset your password to access your new account here.
Reply
#3
1. i put phpshield.5.2.lin on this directory /usr/lib/php5/20060613+lfs so the result will be
/usr/lib/php5/20060613+lfs/phpshield.5.2.lin

2. vi pico /etc/php5/apache2/php.ini
add this extension=phpshield.5.2.lin in last page on php.ini

3. /etc/init.d/apache2 restart

and then everything is work,
what is your opinion ehcpdeveloper?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
i think this is a good solution, that does not alter open_basedir seurity...

Restored from old drupal forum, for user uid:2771 username:cameron
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping