|
|
|
| Web Hosting |
![]() ![]() |
Setting Up Fedora Core For Web Hosting, Not as easy as you might think! |
Nov 30 2007, 07:05 PM
Post
#1
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 myCENTs:35.43 |
On several occasions, I have attempted to install Linux on my computer in a dual boot format to learn how to use Linux and more importantly, learn how to set up a web server.
In the past, I have installed a couple of versions of Red Hat, Unbuntu, Gentoox, GoblinX, and now a couple of versions of Fedora Core. The only thing all of these have in common is that installation is problematic at best. While most distributions of Linux include all the required software to set up a server, I have never been able to realy get it done. Finding where Apache's configuration file is is difficult so you'll be pretty irritated before you manage to make any changes to it. Next, where do your web documents go? Where and how do you use MySQL and forget about FTP for now! In the past I have been able to setup a test server on my computer in Windows which is not an easy task and recently I wasn't able to duplicate the process with the newest versions of PHP, Apache, and MySQL. Additionally, the windows version is not nearly the same as the Linux version. I have an old computer just sitting around so I decided to try it again! This time I did some research and found a guide that was almost exactly the procedure I wanted to follow! How to install Fedora Core 4 Server with the latest Apache, MySQL and PHP support (including --with-mysql in PHP 5) Fedora Core 6 was the newest version I could find on CD ISO's. The DVD drive in that computer is dead. The guide is very thorough but differences between the versions of Fedora Core are not compatible with the procedures... For example, when the installer asks what type of setup you want to install, you'll select "Web Server" instead of "Server". (Step 3) Also on that page, you want to be sure to select the option to install additional packages NOW! Otherwise, you can't select "Gnome, Graphical Internet, Graphic, FTP, MySQL, and Development Tools" as directed. (Steps 5 & 6) If you will be dual booting, you really need to review and modify your disk formating and settings since this is where you set up your GRUB boot loader. Your last chance to make changes to the installation setting is when the installer tells you which disks will be needed for the job. This may be different if installing from a DVD instead! Go ahead and do the installation. (Step 7) After the installation, you'll have to create a default user as described in the guide. (Step 8) *** The rest of the procedures will be performed as this user! Do not use ROOT *** Your first task as described by the guide is to update the server related software. Note, the terminal shortcut may be Applications>Accessories>Terminal (Step 9) Here is where you are likely to encounter your first error message... (Step 11) CODE yum update apache mysql php You'll probably get the following: CODE Existing lock /var/run/yum.pid: another copy is running. Aborting. You may or may not have noticed when you logged in that the Software Updater has a number of updates waiting. That program is using yum so you'll have wait until it is done and go ahead and install those updates with the Software Updater. Once done, you should be able to proceed with the update task as described in the tutorial. Of course, since you just updated a bunch of software, the server related software may have already been updated for you. Follow the guide to be sure! Your next pitfall is the PHP configure section of the guide. I'm afraid I don't have any easy way to show you how to do this. It would be nice if there was a way to have the configuration program continue to the end of the procedure and report all of the errors at once but I don't know of any. Since this process is so frustrating without needing to find the resolution to every error, I'll try to show you how to resolve most of the problems without searching the internet. You run the following as described in the guide: (Step 20) CODE ./configure '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--without-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-kerberos' '--enable-ucd-snmp-hack' '--without-unixODBC' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' And you get the following: CODE configure: error: xml2-config not found. Please check your libxml2 installation. Fix with this: CODE yum install libxml2-devel Or you get: CODE configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/ Fix with this: CODE yum install libcurl-devel Or you get: CODE configure: error: Could not find pcre.h in /usr Fix with this: CODE yum install pcre-devel Or maybe you get: CODE configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore! Fix with this: CODE yum install mysql-devel Hopefully you will notice the pattern here. The missing or problem item name in the error statement is usually the first part of the package to be installed. Here is the format: yum install problemname-devel I suggest that you try and guess the correct name of the package you need to install before you go looking for the solution somewhere else. If the name isn't correct, then the installer will just tell you that it didn't do anything so you'll need to search for the answer on the internet. This could save you a lot of time. I had about 10 of these little errors come up so figuring out this shortcut after the third one saved me a bunch of time! Once you have successfully installed the missing package, repeat the process as described in the guide. (Step 20) Continue following the guide and if you run into any errors on the way that you can't resolve, copy the error message and paste it into the search box for your favorite search engine. Remember, if you don't get a decent hit on one search engine, another might find your solution. I usually don't click a link unless nearly the entire error message is matched exactly how it was given to me. Hopefully, this will save you all of the time I wasted trying to figure this stuff out. You will no doubt experience many more difficulties as you attempt to set up your "server" but this will at least get you the right software to begin the process. By the way, there is a nice text editor that you can edit in that is easier to use than the terminal editor but you can't edit "ROOT" owned files from your user with this tool! vujsa |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
4 | Darkeme | 48 | 8th January 2009 - 09:57 PM Last post by: Darkeme |
|||
![]() |
1 | leader | 53 | 4th January 2009 - 01:54 PM Last post by: yordan |
|||
![]() |
1 | alexdja | 65 | 2nd January 2009 - 08:21 PM Last post by: yordan |
|||
![]() |
1 | surg | 161 | 1st January 2009 - 09:18 PM Last post by: yordan |
|||
![]() |
8 | dhanesh | 1,970 | 28th December 2008 - 11:23 PM Last post by: iG-Gregory |
|||
![]() |
8 | ganeshn11 | 1,828 | 26th December 2008 - 07:31 AM Last post by: bloodcalibur |
|||
![]() |
4 | FirefoxRocks | 168 | 21st December 2008 - 05:38 PM Last post by: Nabb |
|||
![]() |
6 | WeaponX | 3,081 | 20th December 2008 - 09:09 PM Last post by: iG-Paul Coulson |
|||
![]() |
1 | mbach_Cs | 162 | 17th December 2008 - 10:16 PM Last post by: yordan |
|||
![]() |
14 | Mr 85 | 1,677 | 17th December 2008 - 03:44 PM Last post by: ryantommo |
|||
![]() |
8 | Mordent | 350 | 14th December 2008 - 01:43 PM Last post by: Mordent |
|||
![]() |
1 | quack | 126 | 13th December 2008 - 11:04 PM Last post by: yordan |
|||
![]() |
1 | tek3D | 118 | 13th December 2008 - 02:11 PM Last post by: yordan |
|||
![]() |
11 | josonburfield | 895 | 13th December 2008 - 01:17 PM Last post by: tek3D |
|||
![]() |
1 | ted_chou12 | 110 | 13th December 2008 - 01:02 PM Last post by: yordan |
|||
|
Lo-Fi Version | Time is now: 10th January 2009 - 01:31 AM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation



Nov 30 2007, 07:05 PM




