So basically I’m on Opensuse 12.3 64-bit with the latest apache, mysql and phpmyadmin. This system is mainly for testing network monitoring and performance software. Some examples of the software I’ve tried to install are: Icinga, Owncloud (not network monitoring obviously), zabbix and Nconf. Now if I remember right, Nconf is the only one that uses mysql. I was able to reset the mysql root user and make a database, but I noticed that none of these applications would work from the package from the package manager. I had to download the zip/tars of them and put them in the htdocs folder manually. I also had to change the write permissions on the folders to 777 in order for them to run correctly.
So the question is:
I know that 777 is not safe for web and network for that matter. How do I make these folders work correctly with lower permissions?
And to combine both above posts, I would create a separate user for managing web pages, etc. This to make a very clear and save boundary between your daily work (banking, whatever) and you web managing. And of course make www it’s group. And make all web pages, etc. in /srv owned by that user and group.
Jonnothin wrote:
> So basically I’m on Opensuse 12.3 64-bit with the latest apache, mysql
> and phpmyadmin. This system is mainly for testing network monitoring and
> performance software. Some examples of the software I’ve tried to
> install are: Icinga, Owncloud (not network monitoring obviously), zabbix
> and Nconf. Now if I remember right, Nconf is the only one that uses
> mysql. I was able to reset the mysql root user and make a database, but
> I noticed that none of these applications would work from the package
> from the package manager.
What do you mean by “the package manager”?
Do you mean YaST, zypper, or something else?
And what repository did these packages come from?
> I had to download the zip/tars of them and put
> them in the htdocs folder manually. I also had to change the write
> permissions on the folders to 777 in order for them to run correctly.
>
> So the question is:
>
> I know that 777 is not safe for web and network for that matter. How do
> I make these folders work correctly with lower permissions?
Depending on the answers to the questions above, it may be better to
concentrate on making the packages work instead.