Installing PHP5 on Red hat 9


Recommended Posts

hey All

OK im new to linux and Red Hat 9.....could somebody guide me through the process of upgrading my PHP 4.2.2 to PHP 5.0.0 on Apache (well Im guessing its apache - "httpd" is the deamon)....with mySQL (Ive got mySQL installed already).

Thank You.

Choc

Link to comment
https://www.neowin.net/forum/topic/200640-installing-php5-on-red-hat-9/
Share on other sites

First, is there a specific reason you are using RedHat 9? It is a little od to use as a starting point, but if this is an established server, then it might make sense for you to keep it.

http://www.php.net/downloads.php has what you need, I think. It isn't in RPM form, so I think you will have to compile it for you system. If you have a package manager installed like yum or apt (apt4rpm), you may be able to use those to install PHP5 the easy way.

I also did a quick look in http://rpmfind.net to see what PHP they had offered in RPM format, but they only had versions 3 and 4 available.

markjensen: Red Hat 9 is the latest version of Linux Ive got Mandrake 9.1, thats the main reason Ive got Red hat....

  Quote
http://www.php.net/downloads.php has what you need, I think. It isn't in RPM form, so I think you will have to compile it for you system. If you have a package manager installed like yum or apt (apt4rpm), you may be able to use those to install PHP5 the easy way.

Thats what i need to do, compile it for my system, can anybody help me do this?

ChocIST

Edited by ChocIST

Do you have the compiler installed?

Do a gcc -v, and it should spit out some information, ending with the version number installed. If this isn't recognized, we will need to set up your PC for compiling programs, first. (they can be added from your CD, using "Add/Remove Packages" and selecting "Developmet Packages" or something like that)

Once you download, and un-tar your PHP5 package, there should be a README or something like that to tell you what to do. ;)

In short, you usually do a ./configure, then a make, then a make install to install a package manually. But, follow the directions in the readme, it should be plenty descriptive, and tell you what you need to do for this particular package. (Y)

  ChocIST said:
Ive done a "./configure, then a make, then a make install " but PHP version hasent upgraded....yes I have the gcc thing installed..(version 3.2.2)

Is this what the instructions told you to do?

Also, if something "doens't work", it is very important to let people know what was attempted, and the exact error(s) that were generated. (Y)

I untarred it then, ran:

"

$ ./configure --with-mysql --with-apxs

$ make

$ make install

"

like the INSTALL tells you too, I didnt get any errors but if you then type:

<?php

phpinfo();

?>

into a php file and ran that from http://localhost and it reads "PHP 4.2.2"....

ChocIST

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Refined dock and bug fixes land in latest Elementary OS 8 updates by David Uzondu If you're running Elementary OS 8, there's a new round of updates available, bringing some neat enhancements, particularly to its signature Dock and the underlying window manager, Gala. If you are not familiar, Elementary OS positions itself as a polished alternative to Windows and macOS. It runs its own custom desktop environment called Pantheon, with Gala handling all the window management magic, like animations and how windows behave. In the new update, the Dock gets some notable new tricks, including the return of a couple of features that old-school Plank (the Dock's foundation) users might remember. For starters, the Dock now shows multiple indicator dots beneath an app icon if you have more than one window open for that application, which is useful for quickly seeing what is running. Plus, if you are dragging something and hover over an app icon in the Dock, it will cycle through that app's open windows, making it easier to drop your item into the right place. You can also now long-press an app icon to bring up its context menu, a nice touch for those who prefer that interaction. The elementary OS team also squashed some bugs related to hide modes and memory usage, keeping things running smoothly. Gala itself recently got a massive update, addressing around 20 reported issues and introducing a brand new Gesture Controller. This means users can now swipe up in the Multitasking View to close windows, a slick and intuitive gesture. App titles are now always shown in Multitasking View, a significant improvement for touchscreen users. Users also get notified when they take a screenshot with a keyboard shortcut, and this notification lets them jump straight to the image in Files. Some other welcome Gala improvements include saving window states on sleep and shutdown, and fixing an annoying bug where menus might only show once. For gamers, a fix for Lutris Flatpak installations causing Gala to crash with GE Proton setups will be a relief, and users of the Postman app will be happy to know that window captures for it are no longer partially rendered. Shifting back to Elementary OS 8, in System Settings, choosing light or dark mode properly snoozes your schedule instead of outright disabling it. The Reduce Motion setting has been expanded to cover a wider array of animations, which is a blessing for folks prone to motion sickness. Hotcorners got some fixes too, and there is a new option to keep them active even when an application is full screen. Other notable updates include added screen reader support for notifications and the shortcut overlay, fixes for Flatpak sandbox issues that affected apps like Steam, and the latest version of GNOME Web, which brought better performance and a redesigned bookmarks sidebar. You can download all these updates by opening System Settings, heading to System, and hitting "Update All."
    • WSCC - Windows System Control Center 10.0.0.8 by Razvan Serea Windows System Control Center is a free, portable program that allows you to install, update, execute and organize the utilities from various system utility suites. WSCC can install and update the supported utilities automatically. Alternatively, WSCC can use the http protocol to download and run the programs. WSCC is portable, installation is not required. Extract the content of the downloaded zip archive to any directory on your computer. Free for personal use. The setup packages and updates are downloaded directly from their author's website! This edition of WSCC supports the following utility suites: Windows Sysinternals Suite (including support for "Sysinternals Live" service) NirSoft Utilities Mitec and more... WSCC - Windows System Control Center 10.0.0.8 changelog: Update Manager: scheduled updates will run even if WSCC is already running minor user interface improvements Download: WSCC (64-bit) | 6.9 MB (Free for personal use) Download: WSCC (32-bit) | 6.2 MB View: WSCC Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • It seems I was wrong. Modifying the registry manually does not have an effect at all, even after restart. Just use ViveTool for now. I'm going to need to investigate this...
    • Just a small addition - If you're running the command from Powershell, the syntax is: ./vivetool /enable /id:41073112
    • The weak US Governments and DoJ have never been good enough at regulating greedy giants like Apple and Microsoft. These companies want your money yet they will take away your useful features and choices too to sell you the "next upgrade" and no Govt acts against that.
  • Recent Achievements

    • Posting Machine
      Fiza Ali earned a badge
      Posting Machine
    • One Year In
      WaynesWorld earned a badge
      One Year In
    • First Post
      chriskinney317 earned a badge
      First Post
    • Week One Done
      Nullun earned a badge
      Week One Done
    • First Post
      sultangris earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      184
    2. 2
      snowy owl
      130
    3. 3
      ATLien_0
      127
    4. 4
      Xenon
      119
    5. 5
      +Edouard
      89
  • Tell a friend

    Love Neowin? Tell a friend!