 |
 |
 |
 |
| Linux Chat The place to talk about anything linux-related outside of Fedora |

9th February 2010, 02:14 AM
|
 |
Registered User
|
|
Join Date: Feb 2010
Location: Japan
Posts: 16

|
|
|
REDHAT LINUX Forbidden... Help!!
Hey everyone. I am new and have no idea what I am doing operating a server.
Our programmer got a new job and I am the one who has to take it over. Everything was fine til yesterday.
You see I made a control panel to easier update the site www(dot)discoverysound(dot)com
but yesterday when I went to update the site I got an error called fopen. I thought I fixed it (and boy did I ever) but now I cannot get to my site because it says Forbidden You don't have permission to access / on this server. Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.7a DAV/2 PHP/4.3.3RC4-dev Server at www(dot)discoverysound(dot)comPort 80
I am losing mad money by my site not being up and just wanted to know if it is something I can fix before I go looking for a programmer. If someone could be kind enough to walk me through this I would pay for the assistance.
|

9th February 2010, 02:20 AM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,215

|
|
|
And, what have the Red Hat support people (who you're paying for their expertise) told you?
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

9th February 2010, 02:22 AM
|
 |
Registered User
|
|
Join Date: Feb 2010
Location: Japan
Posts: 16

|
|
|
I am not paying anybody yet
Quote:
Originally Posted by bob
And, what have the Red Hat support people (who you're paying for their expertise) told you?
|
I am still a noob on the server side of things. I have my own redhat linux that I use to run my site, but yesterday after the fopen error all hell broke loose. When I restart the server, nothing changes. I still get forbidden when I try to go the the website.
Thus I am asking for help here. I just hope someone can help.
|

9th February 2010, 02:24 AM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224

|
|
Try visiting your website and then check the contents of your /var/log/httpd/error_log file:
Code:
su -
tail /var/log/httpd/error_log
That should point you in the right direction. If you have SELinux enabled, you will also want to check /var/log/audit/audit.log for any AVC denial messages. Run this to see SELinux's status: If it is enabled, check for AVCs:
Code:
tail /var/log/audit/audit.log | grep AVC
|

9th February 2010, 02:24 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
Hello,
Did you make backup of the files you touched first ? if so replace the bad ones.
From the error you made have changed a path
To better help, what ( in detail ) was the changes made ?
check /var/log/httpd error_log access_log
|

9th February 2010, 02:28 AM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,215

|
|
|
Well.... before Dan pulls the trigger, I'm moving this over to Servers.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

9th February 2010, 02:39 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Meh. I put the Colt away. He seems legit enough for now.
|

9th February 2010, 02:50 AM
|
 |
Registered User
|
|
Join Date: Feb 2010
Location: Japan
Posts: 16

|
|
|
I am really sorry guys
I just have no idea what you said.. I put that extension at the end of my URL and still get the same deal. I cannot even access the root from within FTP because it says I am denied.
I am sorry I am not very helpful in receiving help. I know you all must think I am a complete moron, but hopefully I will be able to learn a few things this year so I dont have this problem again.
Someone said change the permissions, but they are always set to 644 and I have never had a problem with that. I am actually on the server now and trying to figure out what to do next.
|

9th February 2010, 02:55 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
try to access you website. Then do
# tail -25 /var/log/httpd/error_log
post output
|

9th February 2010, 03:01 AM
|
 |
Registered User
|
|
Join Date: Feb 2010
Location: Japan
Posts: 16

|
|
|
After the website?
Quote:
Originally Posted by scott32746
try to access you website. Then do
# tail -25 /var/log/httpd/error_log
post output
|
Again sorry I am slow. access the website on the browser? Server? where do I type that code..after root@localhost?
|

9th February 2010, 03:03 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
from browser try to access website
As root
# tail -25 /var/log/httpd/error_log
|

9th February 2010, 03:08 AM
|
 |
Registered User
|
|
Join Date: Feb 2010
Location: Japan
Posts: 16

|
|
|
like this??
Quote:
Originally Posted by scott32746
from browser try to access website
As root
# tail -25 /var/log/httpd/error_log
|
http://www.discoverysound.com/index.html/#tail -25 /var/log/httpd/error_log
|

9th February 2010, 03:12 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
I did the the browser part
just logon the server from the command line type
You are going to need to be super user / su -
tail -25 /var/log/httpd/error_log
|

9th February 2010, 03:19 AM
|
 |
Registered User
|
|
Join Date: Feb 2010
Location: Japan
Posts: 16

|
|
|
Super User??
Quote:
Originally Posted by scott32746
I did the the browser part
just logon the server from the command line type
You are going to need to be super user / su -
tail -25 /var/log/httpd/error_log
|
I am logged on to the server as an administrator. I tried to type what you said and this is what I got:::
permission denied...
|

9th February 2010, 03:21 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082

|
|
|
then you must not be root
did you get on the server with an ID then do something like
su -
or
sudo su -
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 22:20 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|