HomeWeb HostingReseller Web HostingDedicated ServerResources & Support

Go Back   Web Hosting Technical Support Discussion Forum > Linux Web Hosting - Pre Sales Questions > Linux Reseller Accounts Pre-Sales Questions

Linux Reseller Accounts Pre-Sales Questions Discussion forum on Pre-sales question of Linux Web Hosting - Reseller Accounts. Accu Web Hosting
Become a Fan


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-10-2006
Senior Member
 
Join Date: May 2005
Location: (.)
Age: 26
Posts: 144
Rep Power: 0
Manuel_ is on a distinguished road
Send a message via MSN to Manuel_
Default

First you need to check whether php is compiled or not.

# php –v

Above command will provide you installed version of php. If you want to upgrade it then you need to download the source from the URL:

http://www.php.net/releases.php

or use try the below mentioned steps:

# cd /usr/src

# wget http://museum.php.net/php4/php-4.3.3.tar.gz

# tar -zxvf php-4.3.3.tar.gz

# cd /usr/src/php-4.3.3

# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql

Note: ‘/usr/local/apache/bin/apxs’ the path of this apache extension binary may not be the same you need to set it as per your server configuration.
You can add other prefix and options for php extension like GD and other while compiling it.

# make

# make test

# make install

You need to make some changes to work php with Apache, hence need to change the httpd.conf apache configuration file. Open this file with vi editor in insert mode.

If LoadModule php4_module modules/libphp4.so line is not added by php install to httpd.conf, then you have to add it yourself. Add it somewhere below section named "Dynamic Shared Object (DSO) Support"

LoadModule php4_module modules/libphp4.so

Now, add this line to httpd.conf file:

AddType application/x-httpd-php .php

Lastly restart your apache server.

Now create a test PHP file using any text editor and add these lines to it:

<?php
phpinfo();
?>

Save it under phpinfo.php and test your PHP installation by accessing file phpinfo.php.

Please check the original thread posted bu me at http://forum.ev1servers.net/showthread.php?p=385790
__________________
Strat with Linux || Optimize, Secure and increase performance of Apache || Already Started
The visionary conceives the impossible, The missionary makes it possible. ...Gita.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-14-2009
Junior Member
 
Join Date: Dec 2009
Posts: 5
Rep Power: 0
linux7802 is on a distinguished road
Default Re: Compile php

Its great if you also provide us steps to compile php with both veriosn php4 and php5 it will be great help
__________________
Regards,
Linux7802
Check it you will like it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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

BB 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
Howto: Install PHP on Windows 2003 Manuel_ Windows Dedicated Servers 1 12-02-2009 02:01 AM
Hacking issue of PHP Based forums Manuel_ Updates and Bug-fixes 4 07-10-2006 01:47 AM
How to :: add php extension in windows server Manuel_ Windows Dedicated Servers 0 06-23-2006 07:53 AM
Sendmail form for php donjory Windows Web Hosting Discussion Forum 1 02-05-2006 01:48 AM
PHP email facility on site not working anymore Adriaan Linux Web Hosting Discussion Forum and Support 2 08-30-2005 02:02 AM


All times are GMT -5. The time now is 04:37 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
http://www.accuwebhosting.com/terms.htm


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42