PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 12, 2022

[FIXED] Which config files for a LAMP Drupal site should be held in source control?

 January 12, 2022     drupal, lamp, version-control     No comments   

Issue

My team are generally .Net developers but we are currently building a Drupal site, so I am less familiar with standard practice for the LAMP stack.

We finally have the servers configured how we need them to be, so I want to make sure the relevant config files are put into our source control system, so we can track any changes.

I have taken copies of the files below, but I'm not sure if there are any other files that I've missed:

  • httpd.conf
  • php.ini
  • .htpasswd

We already have a strategy for storing the Drupal modules and so on and we don't have any .htaccess files, but are there any other config files that I should be storing for a LAMP-based Drupal site?


Solution

Depending on your configuration, you may have used virtual host files and might need to reference /etc/apache2/sites-available/vhost and/or /etc/apache2/apache2.conf as well as /etc/apache2/conf.d/servername.conf.

You may also have certain settings in /etc/php5/apache2/php.ini, but again it depends on how you set up your lamp-stack.

As well as .htaccess, you should reference the drupal file settings.php, if only for security.



Answered By - knooq
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing