A couple questions about Arch servers and Python vs PHP...
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
A couple questions about Arch servers and Python vs PHP...
I am setting up an Arch Linux server for my personal site and my band site. It will be a LAMP, but I only want one language for the P part. I am trying to decide if it will be better to use Python or PHP.
I need to make ecommerce and a simple blog/news system (two things I want to build myself for experience). So, I need to know:
From someone with ecommerce experience in either/both languages, how easy is it to integrate with Paypal and Credit/Debit card payments?
Which would be more important to get experience in? I'm thinking Python as it's quite widely used on desktop AND web, but is there another side?
Since *nix doesn't require the stupid file extension (replaced with the shebang line), can I setup urls to be like
It depends really on what you want to do. The thing to bear in mind though is that python isn't designed to be a web language while php is and because of that it easier to work with php because it does things like db integration, templating, cgi a lot better without any help and there are more web tools that work with php.
Thats not to stay however that you can't build production class sites with python, You can, if you seriously want to use python for whatever reason. I would take look a good luck at zope and plone as these take modpython and build on it to make it more productive for a web application point of view.
Finally yes you can setup urls to sensible names. Though personally I would keep the file extension as it allow you to distinguish what file types are on your web server and the add something like this in the apache config
I use both Python and PHP, but for different things. If you're looking into web stuff, especially eCommerce or blogs, you'll probably be able to find a lot more pre-written code, packages, and help for PHP.
That being said, when I load a new web server, I put PHP, Python, and Perl on it. There's no reason why you have to choose one, and it's usually helpful to have all 3 on the system - even if all of you web site is in PHP, you may want to run an administrative script in Python or Perl.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.