[Techtalk] Accessing a web page on my server - update 2

Billie Walsh bilwalsh at swbell.net
Sun Feb 3 21:51:29 UTC 2013


OK. at least back where I started. Got the "It Works" page back so 
Apache is running.

On 02/03/2013 03:45 PM, Billie Walsh wrote:
> Nope. It's totally borked. No more "It Works" page
>
> Update
>
> apache2.conf and php5.conf are both borked. I made a backup of the 
> original and tried to put the original back but................
>
> On 02/03/2013 02:38 PM, chris wrote:
>> does an index.html work in /var/www/default?
>>
>> On Feb 3, 2013, at 12:32 PM, Billie Walsh <bilwalsh at swbell.net> wrote:
>>
>>> Probably me. I'm sure I borked something somewhere. Whatever it was 
>>> it didn't work.
>>>
>>> I even created a link to the page I had uploaded on the default "It 
>>> Works" page and can't access it there either.
>>>
>>> On 02/03/2013 01:16 PM, chris wrote:
>>>> I just tested this out on my Ubuntu 12.04 (it should translate to 
>>>> your xubuntu install?) and it worked well. Hpe it helps!
>>>>
>>>> 1. enable the userdir module:
>>>>
>>>> sudo a2enmod userdir
>>>>
>>>> 2. edit /etc/apache2/mods-enabled/userdir.conf file (if needed - 
>>>> mine had this in it by default):
>>>> <IfModule mod_userdir.c>
>>>>          UserDir public_html
>>>>          UserDir disabled root
>>>>
>>>>          <Directory /home/*/public_html>
>>>>                  AllowOverride FileInfo AuthConfig Limit Indexes
>>>>                  Options MultiViews Indexes SymLinksIfOwnerMatch 
>>>> IncludesNoExec
>>>>                  <Limit GET POST OPTIONS>
>>>>                          Order allow,deny
>>>>                          Allow from all
>>>>                  </Limit>
>>>>                  <LimitExcept GET POST OPTIONS>
>>>>                          Order deny,allow
>>>>                          Deny from all
>>>>                  </LimitExcept>
>>>>          </Directory>
>>>> </IfModule>
>>>>
>>>> 3. edit /etc/apache2/mods-enabled/php5.conf
>>>> comment out the following:
>>>> #    <IfModule mod_userdir.c>
>>>> #        <Directory /home/*/public_html>
>>>> #            php_admin_value engine Off
>>>> #        </Directory>
>>>> #    </IfModule>
>>>> #</IfModule>
>>>>
>>>> 4. restart apache
>>>> sudo service apache2 restart
>>>>
>>>> 5. create your public directory and a test file
>>>> mkdir ~/public_html
>>>> vi index.html
>>>>
>>>> 6. test in your browser at 
>>>> http://www.yourdomain.com/~youruserdirectory/
>>>>
>>>>
>>>> cheers
>>>> chris
>


-- 

“Only two things are infinite, the universe and human stupidity, and I’m not sure about the former.”
-Albert Einstein


_ _...  ..._ _
_._  ._  .....  ._..  ...  .._



More information about the Techtalk mailing list