NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

michelefaccini's avatar
Sep 24, 2011

httpd.conf

Hi,I finally managed to setup MySQL and PHP5_5.3.8-rnx86 1.4.1.....I have now to modify my httpd.conf and I would like to know where this file has to be saved : in usr/share/apache/default-configs/apache/httpd.conf ?
or in etc/frontview/apache/httpd.conf ?
or both ?

Thanks for any answer.....

9 Replies

Replies have been turned off for this discussion
  • It is not recommended that you edit httpd.conf as changes will be overwritten when you update or reset your firmware.

    Instead create a .conf file in /etc/frontview/apache/addons with the relevant settings which will be automatically read and not overwritten, though be sure to choose a unique name for the file (eg michele.conf). This is how addons are configured and so a safer technique
  • In the directory you specified,there is the file MYSQLON.conf : if I create one like you said 'michele.conf',what do I have to do to have 'michele.conf' loaded and not the other one....désolé sphardy mais tu as affaire avec un novice....donc si tu peux m'expliquer plus en détailles.....
  • You haven't stated what settings you need to make - just that you wanted to edit httpd.conf.

    MYSQLON.conf is created by the MYSQLON addon which you must have installed and I presume is part of why you have PHP/MYSQL successfully running.

    Please describe clearly what settings you need to make (and why) - what is it that is not working?
  • In fact I have to modify what is it specified as the DocumentRoot (line 305 of httpd.conf which is under usr/share/apache/default-configs/apache) and <Directory /> (line 334 of http.conf) to reflect where I'm going to put my web site (I create a share called my_site) so I need to change line 309 from DocumentRoot /var/www to DocumentRoot /my_site ....same for line 334 which is now <Directory /var/www/> to <Directory /my_site/> is it correct.......I asked if it was only necessary to overwrite this file like this and if in the same position or if this file has to be saved elsewhere....
  • No you don't - just setup a share and use that for your website.

    eg create a share called "website", enable HTTP access to it and point your browser to "http://<nas_address>/website"

    If you start editing httpd.conf and changing such settings you will break Frontview - remember that apache is used to provide Frontview access and setup explicitly for that and to provide http access to shares. Never change internal settings unless you fully understand the consequences
  • I wish I could have my understandings at least a 10 % of yours....thanks a lot for your time.....
  • Thanks !!!....In fact my web site was running well. I had strange sharing problems on my folders ( after Transmission setup problems ), I had to reinstall everything on my NAS from zero because the ReadyNas couldn't mount anymore my web site share .I certainly did something wrong . Since a month ago ,my site was composed of simple HTML pages...and now that I'm learning PHP , I needed to start working with databases and so on....that's why....Quelle fatigue pour apprendre les choses.....mais avec un grain d'obstination....
  • Depending on what you are trying to achieve, perhaps consider using a content management system (CMS) like Wordpress or Joomla. Many applications like these are written in PHP, use MYSQL as the backend databased and can be installed ina share setup as a website to enable you to very easily build complex sites without needing to learn programming skills

    Please see my site for reference which is implemented using Wordpress on a ReadyNAS Ultra using the techniques already covered in this post: http://sphardy.com/web/

    Bonne chance