Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Friday, October 29, 2010

Permission denied: /your/home/dir pcfg_openfile: unable to check htaccess file, ensure it is readable

I was creating a virtual host configuration for an Apache Server, running in CentOS 5, in a method I usually do, which I am almost certain would usually work until I got this dreaded 403 page.

The VHOST configuration:
<virtualhost *:80="">
    ServerAdmin webmaster@dev.somesite.com
    DocumentRoot "/var/local/somesite/public"
    ServerName dev.somesite.com
    ErrorLog logs/somesite.com-error_log
    CustomLog logs/somesite.com-access_log common
    <directory local="" public="" somesite="" var="">
        Options FollowSymLinks
        Allow from all
        AllowOverride all
    </directory>
</virtualhost>

Thursday, April 22, 2010

Profiling PHP Applications on Apache Using Xdebug and Xdebugtoolkit

All written applications have certain areas that become bottlenecks or cause performance issues. Usually, it is identified by running a series of tests i.e benchmark tests, and/or load tests. With these methods, it is very easy to pinpoint the file, class or object that is causing the issue but it is up to the developer to manually figure out what's causing the problem.