Goodfrey
Goodfrey

Reputation: 1

problem when restarting apache by updating php code

Good evening friends, I need your help since I have a problem with a webservice mounted in centos 6.9 with the version of apache 2.2.15 and php 5.5.38.

Before when doing any code I only loaded it and it worked immediately, I had a vacation and a partner of the work made a modification to that server that now every time you update a file, it is required to restart the apache so that you can apply the changes

Currently the partner does not work in the company and I need to replace the apache as it was by default.

They have some idea of ​​how to solve this problem.

Thank you for your cooperation

Upvotes: 0

Views: 78

Answers (3)

Goodfrey
Goodfrey

Reputation: 1

problem solved.

the file opcache.ini was modified in the path /etc/php.d/opcache.ini and the option opcache.enable was set to 0 and that's it, it works correctly thank you very much.

Upvotes: 0

Goodfrey
Goodfrey

Reputation: 1

info

check the php.ini and the function php_opcache.dl is the one that is configured under

zend_extension = php_opcache.dl the php.ini image is appended

Upvotes: 0

squareborg
squareborg

Reputation: 1621

It sounds like you have the opcache extension enabled.

You can remove the extension or tell opcache to check your file for changes every time its loaded by adding

opcache.revalidate_freq=0 your php config

Upvotes: 1

Related Questions