Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to Linux 8.1 1

Status
Not open for further replies.

EvertonFC

Technical User
Nov 24, 2004
107
GB
Hello

I am completely new to Linux 8.1 and have no idea about mySQL or PHP.

However, I have been given responsibility for an Intranet server and need to update, regularly, the company's Intranet site.

Can I confirm here that whatever ASP code I know is useless on the Linux server, and that I need to learn PHP. If so, I would be grateful for any links to basic PHP sites, code banks, and message boards.

Please could anyone indicate if there is anything else I will surely need to know if I am to make any kind of a decent job of this!

Many thanks.

EvertonFC
 
First, welcome

Now, there is no "Linux 8.1". There might be Suse8.1 or Mandrake, RedHat, Debian or whatever distribution of linux there might be used. However, the only numbering truly associated with Linux directly is that of the kernel itself, which isn't a terribly interesting topic for the average user. So in the future, do try and relate the specific distribution of linux when posting.

OK, now the bigger challenge is how to maintain a technology you don't understand. Mercifully, both PHP and MySQL (and I assume Apache web server) are all well documented on their home sites as well as throughout the Internet.

Apache

PHP

Mysql

What you should be doing is reading up on the products via books and reference web sites. Lots of sites exist to support webmasters and developers. Commonly your implementation is referred to as LAMP - Linux Apache Mysql PHP/perl/python. Using that acronym you'll be able to make great progress in learning.

You should also spend some time learning about patch management for your particular distribution of Linux as that is the method of keeping security and performance up-to-date. Depending upon your distribution you may find that your package management is based upon keywords such as

RPM, apt-get, yum, up2date, emerge

These are terms associated with package management on most distributions but typically only one method of pacakage management is used for a particular distribution. Again, you need to learn about this from the reference materials.

Start reading, and feel free to ask questions. LAMP users love to share experience and guidance. You should note that Tek-Tips has specific forums each for Linux, Apache, MySQL, and PHP.

Good luck!






D.E.R. Management - IT Project Management Consulting
 
Now with a username like that .... I am defo going to help you.

LOL
 
Many thanks theDaver for all your support, suggestions, and links. I'd better get reading..........

EvertonFC
 
Hello

My first PHP script is:

<html>
<head>
<title>First!</title>
</head>

<? print(Date("l F d, Y")); ?>

<body>
</body>
</html>

But do I save the file as test.php (and as a txt file), or as test.html (txt file). Either way, I can see it working on this SuSE 8.1).

Any advice appreciated, please.

Thanks.
 
Normally, with a ".php" extenstion. Look in httpd.conf for a line like:

AddType application/x-httpd-php .php

which will indicate which files are handled by PHP.

 
.php extension works better as a general rule. On the shared hosting site my website is on, test.html doesn't parse the php line, so only test.php gets the date displayed and test.phtml just displays the source of the file.

kordaff
 
if you want to learn PHP and a DB system

I recommend you use postgreSQL.
 
Yeah, I'd highly recommend Postgresql over Mysql for stability. Since about version 6.2, I've not seen Postgresql screw up once compared to several glitches with mysql... =)

uname -a will show you the kernel version for your install.

These files show the Distro on rh9:

[root@asylum root]# grep -i shrike /etc/*
/etc/issue:Red Hat Linux release 9 (Shrike)
/etc/issue.net:Red Hat Linux release 9 (Shrike)
/etc/redhat-release:Red Hat Linux release 9 (Shrike)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top