Originally Posted by Mr. Alex
Yes, you got it right. But you set permissions only for the file in the end of the path. But accessing that file requires permissions for "other" in all the dirs in path so
chmod o=rwx /var/
chmod o=rwx /var/www/
chmod o=rwx /var/www/html/
chmod o=rwx /var/www/html/index.php
That is explained in all those manuals I gave you links to. If we have file "/var/log/somelog.txt" and "somelog.txt" has permissions for your user to be read but "log/" doesn't have permission to be executed - you won't be able to read "somelog.txt".
P. S. You open that file as "user", not "other". "other" in this case is for Apache (httpd).
Also in order to start with PHP you should setup LAMP properly. Can't say much about Fedora but for Arch is done like this
Thank you I've corrected those permissions. That's weird, either Fedora's LAMP setup is really streamlined or the guide I used(http://fedorasolved.org/server-solutions/lamp-stack/
) is missing a lot of more advanced steps because that LAMP guide you showed me there has a lot of steps and information that would again help me understand some of this stuff.
I was considering switching to a more common OS like Ubuntu do you think it matters?
Why do you need Linux to learn or use PHP?
I don't really need to I more want to, I've been interested for a long time but have just put it off until now. I remember vainly attempting to install redhat a couple years ago without reading any information prior(assuming it was partion>next>next>next like windows of course) and getting stuck at the root/swap section and just giving up in confusion - I have since reassessed lol.
At the moment I have to Edit>Save>FTP>Reload-Page to test anything and I'd prefer to cut out the ftp step even if it's involves other steps - at least I'll be learning.
I've also setup XAMPP, etc on the Windows machine in the past and to be honest it just frustrates me no matter how clean I try keep a Windows machine as soon as I install anything on it, it just slows right down. I don't install any games or junk on my business machine and I try to use lighter applications if I can but by the time I have Microsoft Office(unfortunately libreoffice can't handle some of the larger .CSV I manage sadly),Notepad++,Filezilla,Photoshop,business related crap,etc. I can already notice it slowing down and that's with a fairly good machine and heaps of free space. But yeah, mostly just out of curiosity.
I love it!!! What a picture!! All the Windows users surrounded by a wall of ignorance with armed guards to keep the knowledge out........Anyone remember the movie "Pleasantville"?
Seriously, we can all empathize. To be proficient at Windows, one must learn a bunch of stuff that was designed by either Marketing/Sales, Legal, or Accounting----but certainly not by Efficiency, Productivity or Ergonomics
(The first 3 are the largest departments at MS---each one fills a 20,000 sq ft building. The last 3 departments are in small trailers on the outskirts of town. Most employees in Group I don't know where they are.......
Seriously--attempt #2: Yes, to learn Linux, you have to UNlearn Windows.
Yeah that's really how it feels, when I am achieving tasks through the terminal in Linux it just feels so natural and satisfying it's a shame that energy wasn't put into learning this system. I'm loving the increase of keyboard use, finally my touch typing is getting the appreciation it deserves.
That's interesting about MS, it shows too, I feel like it just gets so hard to streamline and get efficicent at my daily tasks with the way it's setup no matter how I try to reorganise it. And on top of it all I have to put up with Windows 8 soon.
P.S. I like pleasantville.