Skip to main content

How to make php non executable file on my all C panel.

Comments

3 comments

  • cPanelLauren
    Hello, You should never make modifications to the cPanel VirtualHosts directly in the apache configuration, they will not be preserved after restart. You can make these modifications using the include editor. Documentation on how to use this can be found here: Modify Apache Virtual Hosts with Include Files | cPanel & WHM Documentation You'd want to put these directives inside an IfModule as instructed here: PHP: How to change configuration settings - Manual
    0
  • Vijayakumar J R
    Thanks for your reply. I am not able to see either one of the following on my server.
    • With SSL
      • /etc/apache2/conf.d/userdata/ssl/2_4/includename.conf
      • /etc/apache2/conf.d/userdata/ssl/includename.conf
    • Without SSL
      • /etc/apache2/conf.d/userdata/std/2_4/includename.conf
      • /etc/apache2/conf.d/userdata/std/includename.conf
    • With and without SSL - /etc/apache2/conf.d/userdata/includename.conf
    So how would I update my virtual host for any C panel/Domain? And also where/which location I can find below configuration file. Example #1 Apache configuration example php_value include_path ".:/usr/local/lib/php" php_admin_flag engine on php_value include_path ".:/usr/local/lib/php" php_admin_flag engine on Awaiting for your reply.
    0
  • cPanelLauren
    I am not able to see either one of the following on my server.

    You would need to create them, they do not exist by default. This is noted in the documentation as well: [QUOTE]You must create the directories and the include files for this type of configuration. For information on the directives that you can add to the virtual hosts in your Apache configuration, read .
    0

Please sign in to leave a comment.