LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-09-2008, 11:36 AM   #1
swhitehead
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
tmp/cache
tmp/templates_c

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, 11:57 AM   #2
forrestt
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:
Code:
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:

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

Forrest

Last edited by forrestt; 04-09-2008 at 11:58 AM.
 
Old 04-09-2008, 01:10 PM   #3
swhitehead
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.
 
  


Reply


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 07:06 PM
Can't get PHP 5 to work on CentOS 4.2, Apache 2.0.52 tibberous Linux - Server 3 10-27-2007 06:25 AM
Permissions Apache and CentOS Mr. Slappy Linux - Server 1 07-09-2007 03:57 PM
Apache 2.0.54 rpm for CentOS Swakoo Linux - Software 4 05-14-2007 01:33 AM
CentOS apache test page geosko Linux - Server 21 10-14-2006 12:52 PM


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

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