Page 1 of 1
Really basic newb question...
Posted: Wed Dec 02, 2009 4:01 pm
by MiniMonty
Hi all,
front end designer trying to learn to get his hands dirty at the back end and
having a lot of fun learning php / mysql.
I've installed CakePHP on my Linux server and following the instruction for a good installation it asks me to
edit httpd.conf to ensure that mod_rewrite is working properly.
This is completely Greek to me and I have no idea how to even find the file "httpd.conf" let alone
edit it - very grateful if could someone please point me in the right direction ?
Please be aware that I'm using an Intel Mac not a Windows PC.
Best wishes
Monty
Re: Really basic newb question...
Posted: Wed Dec 02, 2009 4:55 pm
by Weiry
httpd.conf is usually stored within the Apache directory (if that is your web server)
Re: Really basic newb question...
Posted: Wed Dec 02, 2009 5:30 pm
by MiniMonty
Hmmmm...
according to
the server is running Apache/2.2.3 (CentOS)
but (via ftp) the root looks like this:
Do I need to connect up with something other then ftp to see the files ?
If so, any suggestions as to what and how from the Intel Mac ?
Best wishes
Monty
Re: Really basic newb question...
Posted: Wed Dec 02, 2009 5:48 pm
by John Cartwright
The FTP user normally will have access only to the webroot, not the webserver's root. You would need to SSH into the box with an SSH client, then from there you can modify yours servers configuration files using a text editor such as vi.
Re: Really basic newb question...
Posted: Wed Dec 02, 2009 6:15 pm
by MiniMonty
John Cartwright wrote:The FTP user normally will have access only to the webroot, not the webserver's root. You would need to SSH into the box with an SSH client, then from there you can modify yours servers configuration files using a text editor such as vi.
That makes sense - Thanks.
As per the original title of the post "Really basic newb question",
I am the really basic newb in question...
So, I expect a quick google will turn up a Mac ssh client I can download and switch on,
but what will I be looking for once I get it connected to the box and what's the 'best practice'
for editing the file in question ?
I ask because, like anything, I expect it's easy to do badly.
Best wishes
Monty
Re: Really basic newb question...
Posted: Wed Dec 02, 2009 6:39 pm
by Doug G
In CentOS you'll find apache configurations in /etc/httpd/conf/
Often you will use .htaccess to enable mod_rewrite for a particular directory.