gerkintrigg Posted January 15, 2010 Share Posted January 15, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/ Share on other sites More sharing options...
premiso Posted January 15, 2010 Share Posted January 15, 2010 Search for SSHFTP there are plenty of free programs (PuTTY being one) that allow you to connect to SSH like it was your FTP server. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-995601 Share on other sites More sharing options...
gerkintrigg Posted January 15, 2010 Author Share Posted January 15, 2010 I got putty (psftp) now. how do i transfer files using it? All I get is something that looks like a command prompt Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-995609 Share on other sites More sharing options...
premiso Posted January 16, 2010 Share Posted January 16, 2010 Yea, it looks like you have to do that all by command line. Weird, never used it before http://winscp.net/eng/index.php Might be more up your ally. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-995918 Share on other sites More sharing options...
steviewdr Posted January 16, 2010 Share Posted January 16, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-996062 Share on other sites More sharing options...
gerkintrigg Posted January 16, 2010 Author Share Posted January 16, 2010 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!? Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-996247 Share on other sites More sharing options...
gerkintrigg Posted January 17, 2010 Author Share Posted January 17, 2010 bump.. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-996555 Share on other sites More sharing options...
trq Posted January 17, 2010 Share Posted January 17, 2010 What distro are you using? Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-996566 Share on other sites More sharing options...
gerkintrigg Posted January 17, 2010 Author Share Posted January 17, 2010 How do I find that out? Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-996693 Share on other sites More sharing options...
trq Posted January 18, 2010 Share Posted January 18, 2010 You don't know what OS your using? I would suggest you ask your hosting provider. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-996953 Share on other sites More sharing options...
gerkintrigg Posted January 18, 2010 Author Share Posted January 18, 2010 Ah, I'm using CentOS. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-997082 Share on other sites More sharing options...
trq Posted January 18, 2010 Share Posted January 18, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-997089 Share on other sites More sharing options...
gerkintrigg Posted January 18, 2010 Author Share Posted January 18, 2010 no such file or directory. Apparently it's not installed by default (Yes, it shocked me too... it seems like a pretty useful function to not be installed.) Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-997120 Share on other sites More sharing options...
gerkintrigg Posted January 18, 2010 Author Share Posted January 18, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/188572-setting-up-mod-re-write/#findComment-997705 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.