I'm wanting to enable clean-urls and the documentation says:

"To test if mod_rewrite is available in Apache2, you can go
apache2ctl -M"

where exactly do I run this command? I'm using a host that has phpmyadmin and mysql interfaces for me to work in but I'm not sure how to run a command...sorry for the super noob question

Comments

lenkkivihko’s picture

Seems that you have a share host and you can not change your apache settings. (http://en.wikipedia.org/wiki/Shared_hosting)
In case you have root access to your server e.g., with putty you can change the apache server settings. It seems that you don't.
You can send your request to your hosting provider to change the apache (webserver) settings. They might accept your request, or might not.

cumber8’s picture

I am on shared hosting and have been using cpanel to do everything manually, but I know there is some way to do this through command lines or something. Here are the instructions for enabling clean urls on a shared host, but I just don't know where to put these command lines.

Option A: enable and use .htaccess file over-rides

- Best for shared hosts or multisites, if your provider allows over-ride.

You will also need to have the Allow Override settings in httpd.conf (this will allow local .htaccess commands to be run for your site). If you are changing the .htaccess file in the Drupal distribution, then in httpd.conf set set it to:
AllowOverride All

to ensure rewrites are enabled.
If it's not already, ensure that
AccessFileName .htaccess

is uncommented also.

WorldFallz’s picture

.htaccess is a file in your root drupal directory--that's where you can add additional apache commands. However, the key phrase above is "if your provider allows over-ride"-- on a shared host you will not have access to httpd.conf and more than likely they won't allow "AllowOverride All" but you would have to check with your hosting provider to find out for sure.