Jump to content

Recommended Posts

I have contacted my server provider about mod re-write and they say i need to configure (or re-install) apache with the relevant stuff on it.

 

I am using SSH and while I know basic commands to change directory and list things, I am at a loss to work out how to upload the files to the server using SSH from my local machine, where to upload them to and anything else that is likely to destroy my server in the meantime.

 

I need some (pretty basic) tutorial or a friendly forum co-user to help me out on this one.

 

Anybody?

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/
Share on other sites

I have contacted my server provider about mod re-write and they say i need to configure (or re-install) apache with the relevant stuff on it.

 

Its trivial to enable mod re-write.

 

What OS are you using. I gather its linux, but which distro?

Do you have root access on the server?

What version of Apache are you using?

 

On ubuntu/debian its just a case of going:

a2enmod rewrite

/etc/init.d/apache2 restart

 

-steve

yeah, the server owner (not me) said that it's not installed by default and I'm not really sure what release.. I'm using WHM from CPanel to control the server itself.

 

I have full root access but have been advised to SSH into it.

 

The main issue is getting the right files into the right place. I even know how to edit the httpd.conf file, but it doesn't have the option I want - presumably because Apache doesn't include the files required...

 

Help!?

Ok, its been a long while since Ive used a CentOS system but mod_rewrite should be installed by default. You may need to enable it though.

 

Can you grep your httpd.conf file for the include directive and show us what the output is?

 

Something like....

 

grep include /etc/apache/httpd.conf

 

You may need to change the path to your httpd.conf file.

you're going to love this one! (especially thorpe who spent a good deal of his time this morning (thanks very much for that) trying to sort out the issue...

The web host provider now say that it IS installed and IS enabled...

It makes you want to swear a lot, doesn't it...?

 

Needless to say that now I'm looking for an issue that DOES exist, I solved it within minutes!

 

Thanks to everyone.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.