Re: Running Contao on a LAMP
Probably not the answer you're looking for, but my advice is to just develop the site on the final server. Then you don't have to worry about server (local) config or moving the site. The only drawback I see to this is you can't work on a site in places lacking Internet access.
Re: Running Contao on a LAMP
Thanks for your answer, Ben. Actually, I sometimes do develop my websites on the live server, but some sites I'd like to develop on my computer first before they go live.
Re: Running Contao on a LAMP
I was actually suggesting that you put the site in a password protected folder on the live server so no one can see it during development.
Re: Running Contao on a LAMP
Yes, I do put websites I'm working on in a separate directory. I hadn't though of password protecting that directory, I'll do that in the future. Thanks for the tip.
But my original question remains... :)
Re: Running Contao on a LAMP
I'm running on a LAMP myself (CentOS 5, Apache, MySQL, PHP) and run Apache via root and haven't had any issues. I think they give you that warning assuming that you're also hosting this site via your LAMP with apache running under root. If this is the case then yes it is a security issue. But in your case, just using it for developing the site you shouldn't have any problems.
To change permissions for the the files in question from your user to root, first login as root:
command line: su
(then enter root password)
then to change permissions:
command line: chmod -R u+rwx *
(replace * with the directory of your install, in my own case it's /var/www/html)
the last command will give read/write/execute permissions to root user for the contao directory.
Hope this is helpful!
~Mecha
Re: Running Contao on a LAMP
Thanks Mecha.
This is the solution I wound up using:
$ sudo chown -R $USER:$USER /var/www
As described on this page:
https://help.ubuntu.com/community/ApacheMySQLPHP
So all I did was change the permissions, not actually run Apache as root.
- Emiel