SHARE
Facebook X Pinterest WhatsApp

Web Development, Better Done On GNU/Linux

Written By
JB
Jacob Barkdull
Feb 19, 2011

[ Thanks to
Jacob Barkdull
for this link. ]

“I often tell people that setup, configuration,
writing, scripting, and other general development of any website is
better done on the same web server, or at least the same operating
system, that is installed on the web server that the site is going
to be hosted and ran on, rather than developed elsewhere and simply
dropped in place later. It doesn’t matter whether you’re using
Apache or Windows Server, GNU/Linux or Windows.

“I say this because I often see people who write a large amount
of code and/or spend hours writing the HTML, CSS, and JavaScript
for the website’s design in Windows, only to find that the HTML
source doesn’t look right in their text editor on their GNU/Linux
server. This happens because Unix and Unix-like operating systems,
like GNU/Linux and Mac OS, only place a “Line Feed” at the end of
each line, where as in Windows a “Line Feed” and a “Carriage
Return” are placed at the end of each line. So on Windows, files
missing the expected “Carriage Return” read as one long line, on
GNU/Linux, files with an unexpected “Carriage Return” read with
double spacing, which doesn’t make compilers, interpreters, nor
text editors very happy.

“That problem is actually one I hear a lot, and one I had myself
before switching entirely to GNU/Linux, but the problem is bigger
than just extra line breaks. Because the file originated from a
Windows computer and the extra “Carriage Return” displays as “^M”
at the end of each line or as a second line break, I often hear
that PHP code won’t execute or executes very slowly, that their
software for web development on the server won’t open the files or
opens them as corrupt gibberish.”


Complete Story

JB

Jacob Barkdull

Recommended for you...

Red Hat reveals major enhancements to Red Hat Enterprise Linux AI
sjvn
Oct 22, 2024
How to Find AWS EC2 Instance Type Over SSH (6 Methods)
Benny Lanco
Sep 23, 2024
Crond: Daemon to Execute Scheduled Commands
Rose Hosting Blog
Sep 20, 2024
A Detailed Introduction to Oracle VirtualBox
Senthil Kumar
Sep 19, 2024
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.