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.
Sorry if this is not the correct place to post, but was not sure where to start. In the past I have always used Cpanel to create my web directories and databases. I would like to move away from using this panel and like to learn to create it all from the prompt. Can someone please guide me to read on creating web sites from the prompt on a Linux server.
Hello,
Sorry if this is not the correct place to post, but was not sure where to start. In the past I have always used Cpanel to create my web directories and databases. I would like to move away from using this panel and like to learn to create it all from the prompt. Can someone please guide me to read on creating web sites from the prompt on a Linux server.
Thank you JR
"Web Sites" is a very vague term. Do you mean PHP, HTML, or DHTML? Database backend? What do you want the pages to DO????
Setting up Apache is easy, and there are lots of tutorials and help you can find on Google. Since you don't say the version/distro of Linux you're using, can't say more than that. As far as your pages go, you have to decide what you want to write them in, and what you want them to do, then research things from there. Again, there are lots of HTML and PHP guides you can easily find through Google.
Alot of editors you find on Linux are 'context sensitive', and will help you with your coding by pointing out mismatched braces, etc. Bluefish, kdevelop, and Anjuta are three I've used. Basically, you write them as you would any other program...
yes sure,you just need to learn some ftp commands,and mysql commands.
that's all.you can do everything using just the command line
with ftp commands and mysql commands you cannot make a website.
secondly, for mysql commands, you need a shell access to the server, to execute them. Cpanel webhosts, in common do not activate shell access for their clients, thus a no go here.
My advice, Learn HTML and CSS. With those two combined you can make websites files (non dynamic).
If you want dynamic websites, you need to learn a webapp language aswell. E.g. PHP, CGI etc.. (check what you webhost supports before learning. the safest bet is PHP though.) Also Mysql database design helps, or SQlite if you don't have mysql access, or don't need advanced sql features that mysql supports for your site.
Then after the website is ready, you can upload it to your webhost. (and optionally import the made database into the mysql server, through the CPanel wizard, or via PHPMyadmin (most webhosts have this too).
i think he 's talking about creating and managing directories on a web server,so he can use ftp command or the shell of course if he has the access.
and creating and managing databases using mysql command line ,and you can do it remotely
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
cpanel is a web hosting script that is heavily integrated into the server environment, if you had shell access you could do some basic functions, however usually on hosts that provide cpanel or other hosting panels, the user account provided does not have priveleges to create new databases or creation of associations between domains/subdomains and folders (virtual hosts) for instance (though irrelevant unless you need them) and possibly not even create new directories, usually priveleges are severely limited and cpannel runs as a more privileged user, thus making it difficult at best to circumvent cpanel
your best option would be to move away from the host altogether and either purchase (or rent) a dedicated server to which you have root access, or (more expensive perhaps), host the site yourself (requires a static internet IP address, routing equipment and a server)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.