Advice for new linux user in regards to web development build.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
Last edited by graceph; 06-30-2012 at 06:03 AM.
Reason: Added the P.S.
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
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.
Next I have a burning desire to learn PHP and thus am looking into Linux -
Why do you need Linux to learn or use PHP?
Quote:
you can imagine I have quite a wall of ignorance to overcome being a predominant Windows user.
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.
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
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?
=====
=====
Quote:
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.
Quote:
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.
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 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.
Mr. Alex. That's really interesting I had no idea such variations even existed I'll read up on all of them a bit better and give one a go. I've been experimenting further and I'm starting to get the hang of it, I'm enjoying the change of pace.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.