TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-28-2009, 01:18 PM   #1 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default Linux OS

I'm currently building and testing apps on my laptop on Windows XP having installed php, mysql and apache. I'm already running a website on a web hosting package using a Linux OS not sure which. However I'm keen to upgrade to a virtual server hosting package with root access to give me more control and access to the php.ini file etc. I intend to stay with my current host who offer virtual server access with a default OS of

CentOS 5 + Plesk 9

and options to instead have:

CentOS 5 minimal
openSUSE 10.3 + Plesk 9
openSUSE 10.3 minimal
Debian 4.0 (etch) minimal
Ubuntu 8.04 LTS minimal

I know very little about Linux and have been trying to do some research into which OS is better or what differentiates them. I'm looking for some guidance around things i should consider so i dont regret the decision later on.

For example i tried loading up the app i've been working on locally to my hosting space and now realise it must be a slightly older version of php than that installed on my laptop as it doesnt recognise try, throw exception commands etc.

Any advice? Thanks.
captainmerton is offline  
Reply With Quote
Old 08-28-2009, 03:36 PM   #2 (permalink)
The Wanderer
 
lrichmond's Avatar
 
Join Date: Jan 2009
Location: Leeds
Posts: 8
Thanks: 2
lrichmond is on a distinguished road
Default

I personally use Ubuntu as my operating system and have used servers with Ubuntu installed, therefore I would personally go for that, I would suggest maybe learning a bit more about linux as it will only help when it comes to setting up and configuring a server :) once you get comfortable with any of the linux distro's you will find server admin a whole lot easier :)
lrichmond is offline  
Reply With Quote
Old 08-28-2009, 05:32 PM   #3 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

I think your, question, can be answered a little with this
thread: linux distro you think is the best for a programmer ?
codefreek is offline  
Reply With Quote
Old 09-05-2009, 12:00 PM   #4 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Can anybody advise me how i partition my hard drive and run multiple OSs. I have Windows XP on my laptop I want to keep that then create a hard drive partition and install a Linux OS to check it out? I have downloaded Open Suse 11.1 and burned the ISO.

Also - once I have installed the new OS how does it work i.e. how do I select which OS I want to use when booting up?
captainmerton is offline  
Reply With Quote
Old 09-05-2009, 01:18 PM   #5 (permalink)
The Contributor
 
ioan1k's Avatar
 
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
ioan1k is on a distinguished road
Default

Step 1:
http://lmgtfy.com/?q=How+to+create+a...+on+Windows+XP

Step 2:
Boot into the CD this should be done once you put it in ur drive and restart, if not you need to go into you bios and change your boot sequence so the DVD drive is first. Then just follow the onscreen instructions.

Once installed open suse automatically installs grub and you are able to choose the OS you want to go into when you start your computer
__________________
My Portfolio - Work - Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
ioan1k is offline  
Reply With Quote
Old 09-08-2009, 02:50 PM   #6 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Sorry if i appeared lazy not just googling it myself. In any case done a fair amount of reading and am going to start by installing CentOS 5 alongside Windows Xp on my laptop. I;m a bit fearful about damaging the laptop in terms of having on re-install Xp if it all goes pearshape. In any case CentOS has a number of install options i think dependent on processer i.e. X86 or i386 - any idea which one i need to choose or how i find out which one i choose?

Also once i've created the HD partition on my laptop and burned the CentOS 5 ISO boot disc is this used to install the OS on the newly partitioned HD space after which time i wont need to use the boot disk again?
captainmerton is offline  
Reply With Quote
Old 09-08-2009, 03:45 PM   #7 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

If you have a CPU that uses the x86 instruction set (i.e. i386) then the x86 will be the one you choose (most likely that is the one you have, if you have a 32bit CPU)

However if you have a 64bit CPU (AMD64 or non IA-64 Intel cpu's called IA-32e or EM64T I think) then most likely it will be labeled x86-64

For most CPU's on the general market:
x86 = 32bit
x86-64 = 64bit

Its obviously a bit more complex than that, but most of today's CPU's are build on the x86 architecture, unless your running something ridiculous.

Quote:
Also once i've created the HD partition on my laptop and burned the CentOS 5 ISO boot disc is this used to install the OS on the newly partitioned HD space after which time i wont need to use the boot disk again?
Correct, most likely it will also install GRUB or a similar boot loader to switch between either windows boot partition or the penguin (as mentioned previously).

I would advise creating a backup DVD or similar of your windows installation before tinkering with partitions etc just in case.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
captainmerton (09-09-2009)
Old 09-08-2009, 04:31 PM   #8 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

If you are not sure which one your processor supports, x86 should be a safe bet. Getting a 64-bit linux really doesn't mean much since so few applications are actually built to run in a 64-bit environment. Applications such as firefox will build on a 64-bit machine, but take absolutely no advantage of it. This is only the case for desktops, not servers.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
captainmerton (09-09-2009)
Old 09-09-2009, 12:44 PM   #9 (permalink)
The Contributor
 
Join Date: Mar 2009
Posts: 49
Thanks: 0
TheOnly92 is on a distinguished road
Default

For servers, 64-bits will be quite a painful one. Lots of applications out there (especially PHP) will require tons of libraries in 32 bit. Since most of your libraries will be in the 64-bit library, you will need to work out the configuration and do some manual symbolic links to the normal path PHP will find.

IMO, you should not be getting 64-bit unless your gonna do the easy (apt-get, yum) way.
__________________
There are no noobs and pros in this world, only people who know how to use Google and those who don't.
TheOnly92 is offline  
Reply With Quote
Old 09-09-2009, 01:11 PM   #10 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

I don't believe its in a server context
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 09-09-2009, 01:18 PM   #11 (permalink)
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default

Skipping past all this 32,64 bit junk I think that captainmerton you are worrying way to much about which version of linux you are going to install. It really does not matter. Ubuntu is the easiest to work with for a new linux user. They will all run php in basically the same way.

The reason your php is running differently on the server then on your laptop is because the server is still on php 4.x (hints the no try catch) and your laptop is probably on 5.x. Big difference there.

If you chose to dual boot make sure to always install the windows os first starting oldest first. So if you were to dual boot windows xp, vista, ubuntu and centos. Install them in the order of xp, vista, cent, ubuntu. This way you get the newest grub when you are done. Make sure to back everything up because you may lose it all in the process. I have done triple and quadrupal boots on my laptop but there really is no reason to. 1 linux 1 windows is all you should ever need.
CoryMathews is offline  
Reply With Quote
Old 09-09-2009, 06:36 PM   #12 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Just to be clear I mainly want to build a development environment on my laptop. I intend to upgrade to a virtual server hosting package shortly (on account of the kind of issues i've encountered already re. try catch statements and old versions of php) and i'll be going on CentOS 5 as i have no interest in Linux as a desktop personal pc user only to run a web app i'm developing hence the choice of CentOS and not Ubuntu. Thanks for the help and advice guys. Much appreciated.
captainmerton is offline  
Reply With Quote
Old 09-01-2009, 07:47 AM   #13 (permalink)
The Wanderer
 
lrichmond's Avatar
 
Join Date: Jan 2009
Location: Leeds
Posts: 8
Thanks: 2
lrichmond is on a distinguished road
Default

Quote:
Originally Posted by knight13 View Post
Everybody will tell you something different because they have different tastes, try them all and see which one you like the best i mean it may be a little extra work to try them all but at least you will know when you find the version you like the best.
in all honesty that is a very good point, if you have the time to try out a few different distro's of linux (on your machine) then I would definitely say do it.:)
lrichmond is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Thread? allworknoplay The Lounge 10 03-24-2009 12:29 AM
installing ffmpeg on linux moiseszaragoza Advanced PHP Programming 4 12-18-2008 01:17 PM
Since when, Linux? delayedinsanity The Lounge 13 08-26-2008 12:24 PM
An IDE for Linux CMellor The Lounge 2 01-01-2008 04:46 AM
Linux Ubuntu CMellor The Lounge 8 12-22-2007 10:33 AM


All times are GMT. The time now is 04:50 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design