Really basic newb question...

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
MiniMonty
Forum Contributor
Posts: 196
Joined: Thu Sep 03, 2009 9:09 am
Location: UK

Really basic newb question...

Post 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
User avatar
Weiry
Forum Contributor
Posts: 323
Joined: Wed Sep 09, 2009 5:55 am
Location: Australia

Re: Really basic newb question...

Post by Weiry »

httpd.conf is usually stored within the Apache directory (if that is your web server)
MiniMonty
Forum Contributor
Posts: 196
Joined: Thu Sep 03, 2009 9:09 am
Location: UK

Re: Really basic newb question...

Post by MiniMonty »

Hmmmm...

according to

Code: Select all

 
<?php phpinfo(); ?>
 
the server is running Apache/2.2.3 (CentOS)

but (via ftp) the root looks like this:

Image

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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Really basic newb question...

Post 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.
MiniMonty
Forum Contributor
Posts: 196
Joined: Thu Sep 03, 2009 9:09 am
Location: UK

Re: Really basic newb question...

Post 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
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Really basic newb question...

Post 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.
Post Reply