Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-09-2008, 12:36 PM   #1
LQ Newbie
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Centos 5 Apache error

I am a new user of Linux. I am setting up a web server and have the appropriate software installed. Our company has an old web site running on Red Hat and we are changing to Centos 5. When I put the old web site files in the /var/www/html folder and run the site in the browser, it comes up fine. I deleted the information out of the html folder. We are putting up a new web site. When I put the files in the html folder and try to run the new web site I get an error displayed in the browser window:
The following directoriesmust be writable by the web server

Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/templates_c
or the equivilent for your platform before continuing.

I tried to execute the changes and got an error: No such file or directory.

I am running Apache 2.2
Old 04-09-2008, 12:57 PM   #2
Senior Member
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
These commands should fix things:
cd /var/www/html

find . -name cache -exec chmod 777 {} \;
find . -name templates_c -exec chmod 777 {} \;
Although they are a bit harsh (they will change every instance of cache and templates_c under your html directory). You can also just attempt to find out where your temp directory is located and then change the directories manually:

cd /var/www/html
find . -name tmp -type d
(note output from above)
cd ./location/from/above
chmod 777 cache templates_c


Last edited by forrestt; 04-09-2008 at 12:58 PM.
Old 04-09-2008, 02:10 PM   #3
LQ Newbie
Registered: Mar 2007
Posts: 3

Original Poster
Rep: Reputation: 0
code worked

thank you for the information. It did work. Now the web site does not show up but I don't get the error. I will work at it some more. Like I said, I am new at setting up a web server.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lighttpd/FreeBSD vs CentOS/Apache Hawnted Linux - Server 1 04-20-2008 08:06 PM
Can't get PHP 5 to work on CentOS 4.2, Apache 2.0.52 tibberous Linux - Server 3 10-27-2007 07:25 AM
Permissions Apache and CentOS Mr. Slappy Linux - Server 1 07-09-2007 04:57 PM
Apache 2.0.54 rpm for CentOS Swakoo Linux - Software 4 05-14-2007 02:33 AM
CentOS apache test page geosko Linux - Server 21 10-14-2006 01:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration