Linux apache developing configuration

Posted by Jeffrey Vandenborne on Server Fault See other posts from Server Fault or by Jeffrey Vandenborne
Published on 2010-04-24T17:03:42Z Indexed on 2010/04/25 4:03 UTC
Read the original article Hit count: 352

Filed under:
|
|
|

Recenly reinstalled my system, and came to a point where I need apache and php.

I've been searching a long time, but I can't figure out how to configure apache the best way for a developer computer. The plan is simple, I want to install apache 2 + mysql server so I can develop some php website.

I don't want to install lamp though, just the apache2, php5 and mysql. The problem that I've been looking an answer for is the permissions on the /var/www/ folder. I've tried making it my folder using the chown command, followed by a chmod -R 755 /var/www. Most things work then, but fwrite for example won't work, because I need to give write permissions to everyone, unless I change my global umask to 000 I'm not sure what I can do.

In short: I want to install apache2, php5, mysql-server without using lamp, but configured in a way so I can open up netbeans, start a project with root in /var/www/, and run every single function without permission faults. Does anyone have experiences or workarounds to this?

Extra:

  • OS: Ubuntu 10.04
  • ARCH: x86_64

© Server Fault or respective owner

Related posts about apache

Related posts about linux