Hello, my name is Richart Escobedo (est4ble) for the friends the free software.
I'm web development in Arequipa-Perú.
After I use drupal system in Windows and Debian Gnu/Linux. Now I use the drupal system in Ubuntu Gnu/linux 8.10.
Also, I have the directory public_html in my home and I activated the module userdir for apache http server.

The problem: I can't view the directory drupal in my public_html, but if the copy is in (/var/www), it can view and work sucessfully. I don't know because in (/home/my_user/public_html) it not work but in (/var/www), this works fine normally.

the specific:In my /home/my_user/public_html. I have others projects php-mysql and these works fine normally.
Spend a little curious, if I delete the .htaccess of the drupal directory, this works fine, but if there is not. I tried also with permissions (chmod) for the drupal directory, but nothing.

pd:please me, by my basic english.

thanks for your helps in the forum, wait your answers.

bye, bye.

Comments

mauror’s picture

Have you properly configured Apache?

I found that in order to have Drupal working in with mod_userdir in Ubuntu, I have to modify apache2.conf.

What I did was to add/modify this lines in apache2.conf:

<IfModule mod_userdir.c>
    UserDir public_html
    UserDir disabled root
    <Directory /home/*/public_html>
        AllowOverride All
#	Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
    </Directory>
</IfModule>

Basically You must be sure AllowOverride is set to All for the directory containing Drupal.

This should be enough.

--
New to the Drupal community?

richarteq’s picture

Thanks mauror, I installed drupal system correctly. But, I have a one question.
First: My userdir.conf before of the editing.

 <Directory /home/*/public_html>
                AllowOverride FileInfo AuthConfig Limit Indexes
		...

Second: My userdir.conf After of the editing.

 <Directory /home/*/public_html>
               	AllowOverride All
		...

The question: After of the changes. What problems I could have in the security and accesibility in my directory public_html. In any case, what recomendations and explications have the change AllowOverride to userdir.conf.
bye.

mauror’s picture

There is not a simple answer to your question:
Just a quick list (random order):

* There are no problems regarding accessibility because you are relaxing restrictions and checks in apache
* There are security problems...
* I am sorry I have to refer you to the generic apache documentation landing page at http://httpd.apache.org/docs/ (I am unable to find right now a more specific URL)
* I think you have to browse the whole documentation for your specific version (is it Apache 2.2 isn't it?)
* Actually, I think you should carefully study ALL of the documentation, and maybe getting yourself a good book on apache and apache security, if you're serious about using apache... just my 2 cents (be sure to buy a book based on your version of apache: many books cover 1.3, while 2.x is covered not so very well)
* If 'AllowOverride all' solves your problem, be happy, because you have actually narrowed down your problems A LOT...
* Actually, 'AllowOverride' allows .htaccess files to override configuration settings: if you are confident that nobody can put a malicious .htaccess file on your server, you are safe
* You can always switch on and off the options on the AllowOverride directive in order to figure out which one is giving you troubles
* AllowOverride is all about .htaccess, and .htaccess in Drupal is more or less only for clean URLs and (maybe) multisite, if you don't care about clean URL, you are ok turning off AllowOverride
* the Drupal .htaccess is all about mod_rewrite: is your configuration right regarding mod_rewrite? (I remember not being able to activate clean URL on Ubuntu 7.04...)

--
New to the Drupal community?