Ifedi Okonkwo
Ifedi Okonkwo

Reputation: 3646

Can Apache Configuration File (httpd.conf) Be Located Elsewhere?

I have been using Apache on Windows (+PHP +MySQL) for a long time now. Lately, I decided to have the configuration files of Apache, PHP and MySQL in one directory, outside of the installation folders of any of them.

With PHP it works by setting PHPIniDir in Apache's httpd.conf

With MySQL it works by setting the --defaults-file=<path/to/my.ini> option while installing on the command line as a Windows service.

With Apache itself, I haven't been able to find a way. Is it possible to choose an arbitrary location or name for the httpd.conf file? And how?

Thank you.

Upvotes: 0

Views: 212

Answers (1)

srIT
srIT

Reputation: 46

you could use "..-f httpd.conf" on startup. see http://httpd.apache.org/docs/current/de/invoking.html

Regards

Upvotes: 1

Related Questions