Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal install on localhost asks for FTP info

I'm running Drupal 7.4 on localhost, and I've downloaded some themes/modules but I'm unable to install them. I go to administration/modules, for example, select 'Upload a module or theme archive to install', choose the tar.gz from my file system, and before the install I'm asked for a FTP user and password and can not advance.

I'm working locally, so I'm thinking maybe I made some mistake during the install. How can I correct this? I have to do a lot of testing on local before moving the site to a server.

like image 698
brunn Avatar asked Jul 30 '11 16:07

brunn


3 Answers

I found the solution here. All I have to do is place the modules/themes inside drupal_folder/sites/default/modules or themes and that's it.

Thanks @nmc

like image 140
brunn Avatar answered Sep 30 '22 09:09

brunn


This can happen when sites/default folder is not owned by the user that executes the install script. Make sure the folder sites/default is owned by the apache user (from your drupal root):

Ubuntu:

chown www-data sites/default

Fedora:

chown apache sites/default
like image 23
wranvaud Avatar answered Sep 30 '22 11:09

wranvaud


If your not able to install the module, because the lack of a ftp connection, it's possible to use the old fashion way. The other solution has described it, but it's not correct for a 100%.

If you want to do it the drupal way, you need to install the modules/themes to

drupalfolder/sites/all/modules or drupalfolder/sites/all/themes

if you are having a multi-installation of drupal, then:

drupalfolder/sites/domain_name/modules or drupalfolder/sites/domain_name/themes

like image 23
Bacterion Avatar answered Sep 30 '22 10:09

Bacterion