@ -393,8 +393,8 @@ class EEStackController(CementBaseController):
config = configparser.ConfigParser()
Log.debug(self, "configuring php file"
"/etc/php5/fpm/php-fpm.conf")
config.read(codecs.open("/etc/php5/fpm/php-fpm.conf",
"r", "utf8"))
config.read_file(codecs.open("/etc/php5/fpm/php-fpm.conf",
config['global']['error_log'] = '/var/log/php5/fpm.log'
config.remove_option('global', 'include')
config['global']['log_level'] = 'notice'
@ -90,7 +90,8 @@ class EEFileUtils():
"""
try:
Log.debug(self, "Doning search and replace, File:{0},"
"Source string:{1}, Dest String:{2}".format(src, dst))
"Source string:{1}, Dest String:{2}"
.format(fnm, sstr, rstr))
for line in fileinput.input(fnm, inplace=True):
print(line.replace(sstr, rstr), end='')
fileinput.close()