How do I setup an Alias on Apache with XAMPP on Linux ? (Permission problem)
        Posted  
        
            by 
                knarf
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by knarf
        
        
        
        Published on 2011-03-11T16:43:57Z
        Indexed on 
            2012/04/12
            11:31 UTC
        
        
        Read the original article
        Hit count: 254
        
XAMPP works fine but I want to have http://localhost/f to point to /home/knarf/prog/php/fwyxz.
- I've chmod -R 777 /home/knarf/prog/php/fwyxz
- I've added Alias /f /home/knarf/prog/php/fwyxzat the end of the httpd.conf
And when I try to access it, I get a 403.
From the apache error_log: [error] [client 127.0.0.1] (13)Permission denied: access to /f denied.
I've already tried several solutions (userdir and symlinks) but they both failed with the same error.
I've also tried to add this after the Alias:
<Directory "/home/knarf/prog/php/fwyxz">
    Order allow,deny
    Allow from all
</Directory>
But again, permission denied.
Now if I change the User/Group under which apache runs from nobody to knarf, it seems to work (static files are ok) but PHP can't use/initialize sessions :
[error] [client 127.0.0.1] PHP Warning:  session_start() [function.session-start]: open(/tmp/sess_r5nrmu4ugqguqqe83rs53lq6k0, O_RDWR) failed: Permission denied (13) in /home/knarf/prog/php/fwyxz/index.php on line 3
[error] [client 127.0.0.1] PHP Warning:  Unknown: open(/tmp/sess_r5nrmu4ugqguqqe83rs53lq6k0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[error] [client 127.0.0.1] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
This is really frustrating.
© Server Fault or respective owner