i've been developing website using local wamp server, on own laptop.
i purchased domain, , deployed website there.
so far, works fine, except : "public_html" folder on host-server did not have few files, thought should there default.
(1) .htaccess
(2) php.ini
(3) httpd.conf
the first 2 no problem. can create new ones myself (or, copy-paste ones use on wamp server)
however, httpd.conf
file mystery me.
firstly, have no idea located. domain-hosting service using linux-based (not matters, guess)
secondly, could, of course, copy httpd.conf
file have on wamp server. but, copy ? copied straight public_html
folder, solved nothing.
my reason needing httpd.conf
because, amongst other things, need modify many settings, important being : mod_rewrite
. need enable mod_rewrite
, can configure .htaccess
file.
i searched online, , found many references httpd.conf
, nothing remotely resembling situation
i contacted so-called customer support service on domain registrar. said (and quote) : if want make modifications domain configuration, create file, write configuration code there, , save file : .user.ini
, save file in public_html
folder".
well, solution did not sound right me. but, did anyway. copy-pasted contents of own httpd.conf
file new .user.ini
file, , saved public_html
folder.
result: still nothing.
.htaccess
* maybe .htaccess
in wrong location (determined httpd.conf
)
* maybe .htaccess
has wrong name (determined httpd.conf
)
* maybe .htaccess
includes directives not allowed (determined httpd.conf
)
* http://httpd.apache.org/docs/current/howto/htaccess.html
php.ini
* httpd.conf
there "global" copy in case may able "override" particular settings
* chopy/paste copy elsewhere starting point or build 1 need
* http://php.net/manual/en/ini.php
* find location of php.ini
, configuration create test.php follows...
<?php phpinfo(); ?>
...then point browser @ it.
httpd.conf
* provided has global copy in place not have access , have controls in place limit user-configured directives in own .conf - you'll have contact provider specifics
* try accessing /server-info
, /server-status
(though not enabled default don't surprised if 404s) - give insight configuration
* httpd.conf
should not reside in publicly accessible folders
* http://httpd.apache.org/docs/current/
you best suited directing questions provider.
hopefully helps.
Comments
Post a Comment