Advice for new linux user in regards to web development build.
Hi Linuxquestions,
I am new to Linux and wanted to just get some advice from the right people to wrap my head around how this all works. My path so far has been along the lines of "HTML/CSS -> Photoshop/Graphic Design -> CMS/E-commerce". Next I have a burning desire to learn PHP and thus am looking into Linux - you can imagine I have quite a wall of ignorance to overcome being a predominant Windows user. At the moment I have Fedora 17 installed on a 64Bit older laptop. At this point I've installed the latest updates and a LAMP stack following instructions but I'm hesitant to do too much more before I get some insight into the basics. I won't ever need to externally view anything on this machine I just want to start learning php/mysql on here and will need to be able to view it through localhost. So my questions are: ===== While trying to save a test hello world in gedit to /var/www/html I received an error message in regards to permissions, then while googling that I've been getting a lot of conflicting advice on which method is best to use for this environment so I can quickly edit php/html/css files stored in those locations. I'm a bit confused because I think I don't fully understand the whole user/root/permissions and development-environment/web-environment. Would you be able to point me to a resource for the setup/access of phpadmin and possibly cpanel? Could you also please advise me on some reading resources you would recommend for basic Linux knowledge that you think can get me started on right right track. ===== I would appreciate any insight you can give into this new world I've stepping into. If I left out any necessary information I apologise. Kind Regards, Graceph |
Quote:
Quote:
http://www.comptechdoc.org/os/linux/..._ugfilesp.html http://www.yolinux.com/TUTORIALS/Lin...ingGroups.html Quote:
Quote:
http://www.funtoo.org/wiki/Linux_Fundamentals,_Part_1 (even better) |
Hi Mr. Alex,
Thanks a lot for that info it was exactly what I needed, from reading both those I had a go and what I've done is: # chmod o=rwx /var/www/html/index.php Is this what you meant when you said set it's permissions to "other"? I appreciate your input. P.S. Oh and I get a random error instead now when using gedit to save it comes up with a warning saying it was unable to make a backup but I can save anyway if I want, but it won't save if I try click the button. However I installed my preferred editor sublime text and it saved fine so I'm not worried but I just thought I would note it. |
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
Code:
chmod o=rwx /var/ 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. |
Quote:
Quote:
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. |
Quote:
I was considering switching to a more common OS like Ubuntu do you think it matters? ===== ===== Quote:
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. :) Quote:
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. ;) |
Quote:
As for Ubuntu - try to avoid it to prevent fake frustration. It's so buggy and raw these days, it doesn't even feel like GNU/Linux any more. I would recommend checking out http://distrowatch.com/table.php?distribution=mepis http://www.linuxmint.com/download_lmde.php/ http://distrowatch.com/table.php?distribution=pclinuxos http://distrowatch.com/table.php?distribution=sabayon These four are OK. |
Quote:
2 collections of docs http://www.tldp.org/ www.linuxtopia.org |
I have been changing my email over to a new server and missed my subscription emails sorry about the late replies I just remembered to come check - apologies.
Quote:
Quote:
|
All times are GMT -5. The time now is 11:46 AM. |