LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-14-2010, 02:28 PM   #1
gaspower
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Rep: Reputation: 0
Creating Web Sites Without Cpanel


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
 
Old 12-14-2010, 02:42 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gaspower View Post
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...
 
1 members found this post helpful.
Old 12-14-2010, 02:49 PM   #3
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
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
 
Old 12-14-2010, 02:59 PM   #4
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
Quote:
Originally Posted by ilvista View Post
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).

good luck...
 
Old 12-14-2010, 03:49 PM   #5
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
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

Code:
http://dev.mysql.com/doc/refman/5.0/en/connecting.html
correct me if i'm wrong

Best regards.
 
Old 12-14-2010, 03:51 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Even Faster Web Sites: Performance Best Practices for Web Developers LXer Syndicated Linux News 0 07-07-2009 10:21 PM
Cpanel/WHM Died at /usr/local/cpanel/Cpanel/Hulk.pm line 92. liang3391 Linux - Software 1 06-22-2009 02:02 PM
Tools for developing C# web service and web sites in Linux woodbase Linux - Software 3 08-10-2006 01:28 PM
Personal web server for testing web sites? Ariod Linux - Newbie 12 09-29-2005 04:30 PM
Creating Web sites ?? cruse Linux - General 1 01-20-2001 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration