Re: accessing localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



redhat said:
> Jay Daniels wrote:
>
>>redhat said:
>>
>>
>>>Scott Miller wrote:
>>>
>>>
>>>
>>>>Check your httpd.conf file, verify the default document root is
>>>>/var/www/html (could be something else)
>>>>
>>>>Here's a snap of where I put my document root - changed from
>>>>/var/www/html: (about a third of the way down)
>>>>
>>>># This should be changed to whatever you set DocumentRoot to.
>>>>#
>>>><Directory "/home/domains">
>>>>#
>>>>#
>>>>
>>>>After you are done reading the httpd.conf file, and find the document
>>>>root, upload an index.html file there, then:
>>>>
>>>>service httpd restart
>>>>
>>>>then opening a browser and typing:  localhost
>>>>
>>>>should bring up that page.
>>>>
>>>>Scott
>>>>
>>>>
>>>>
>>>ok, things are working correctly now.  It's even picking up the .php
>>>extension before the .html, which is what I want. Not sure what part did
>>>it.  The directory was set correctly.  I had 3 httpd.conf files -
>>>httpd.conf httpd.conf.bak httpd.conf.rpmnew
>>>
>>>I tried all three to no avail, then I saw your "service httpd restart"
>>>command and that worked, with the httpd.con.rpmnew in place of the
>>>httpd.conf.  I'll try it with the other two and see what happens.
>>>
>>>I think I probably hosed it via WEBMIN.   :-P
>>>
>>>
>>>
>>
>>Not necessarily, perhaps you ran up2date and it installed a newer rpm?
>>
>>
>>jay
>>
>>
> well, yeah, I have a newer RPM...  So if I update again when a newer rpm
> comes out it will hose up again?
>
>
>

I think so, but it should have created httpd.conf.rpmnew.  If you manually
edit the httpd.conf I do not think it will replace it.  Seems like I got a
warning that my httpd.conf was saved as httpd.conf.rpmnew and the original
was left intact.  Or maybe it was the other way around.

In anycase, just "locate httpd.conf" if up2date installs a new
httpd/apache rpm and review the files.

If I manually edit httpd.conf I always back it up,
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.myconfig

so I always have a working copy of my config file.

What scared me was after the httpd.conf was replaced after up2date
installed a newer version, .htaccess control was not enabled.  In other
words, all my .htaccess files were simply ignored.  This may be the
default, idonno.

Anytime you update your httpd server, remember to review the config file.

This is probably a bug.  I thought rpm -U which is used by up2date was not
suppose to replace config files, but simply install the config as
something like the above, httpd.conf.rpmnew.



jay
-- 


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux