php package installation problem


 
Thread Tools Search this Thread
Operating Systems Solaris php package installation problem
# 1  
Old 03-22-2011
php package installation problem

can u tell me the procedure to install php 5 using package ..
i downloaded php-5.2.1-sol10-x86-local.gz from sunfreeware

i have added package using
pkgadd -d php-5.2.1-sol10-x86-local

then i have added these two lines in httpd.conf
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php

and placed php.ini in /usr/local/php/lib

but still i couldn open a php file..
tel me where am i going wrong..

i already have apache 2.0



---------- Post updated at 06:23 PM ---------- Previous update was at 04:51 PM ----------

i have this problem for a month couldn find the solution ... can u guide me with your ideas..
# 2  
Old 03-22-2011
Did you reload/restart the daemon? Otherwise neither configuration changes nor new modules will be picked up. Did you check the Apacher error_log for any messages? Any console errors? Because based on the information you've given so far we might as well look into a crystal ball.
# 3  
Old 03-22-2011
ya i have restarted my apache ...
but i didn check my error log will post the log .. now..

do we need to first shutdown apache while installing php...?

i followed the below procedure...
its from SUN FREEWARE...

php-5.2.1-sol10-x86-local.gz The PHP scripting language - installs in /usr/local/php. PHP requires that libiconv. libxml2, zlib, and either libgcc-3.4.6 or gcc-3.4.6 be installed. PHP is used with apache 2.0.59, not apache 2.2, and mysql which should also be installed along with any packages they may require. PHP needs configuration. php.ini related files are in /usr/local/php/doc/php along with other documentation. php.ini needs to be installed in /usr/local/php/lib. The libphp5.so file is installed in /usr/local/apache2/modules. The following two lines LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
need to be placed in your httpd.conf file in their appropriate places. Finally, you will need to have /usr/local/lib and /usr/local/pgsql/lib before /usr/lib in your library search path like LD_LIBRARY_PATH or similar.


i have already installed mysql 5.0 in solaris 10 x86 box...

i have apache 2.0 in my solaris 10 x86

how to restart deamon process ...
am using the following to start and stop apache..

svcadm -v enable /network/http:apache2
svcadm disable /network/http:apache2

Moderator's Comments:
Mod Comment This is a forum, not a chat room. Try to provide as much information as you can in one post, instead of a series of one-line information snippets


---------- Post updated at 09:13 PM ---------- Previous update was at 08:45 PM ----------

am sorry for posting my comments one by one...
i followed that procedure ... and my error_log shows nothing which i couldn find any errors... i will once again install and post my error_log...

Last edited by pludi; 03-22-2011 at 12:35 PM..
# 4  
Old 03-22-2011
If the error log doesn't show any problems, please post the error message your browser displays, and, if possible, the script itself.
# 5  
Old 03-23-2011
error message ..

i have again tried php installation with ./configure ..

but still couldn find the solution..
when i placed my phpinfo.php file in the apache document root directory..
/var/apache/htdocs/phpinfo.php

i get a blank page in my browser screen ...
with "hello world" line
my phpinfo.php file looks like this ..

<html>
<body>
<p>Hello World</p>
<?php phpinfo(); ?>
</body>
</html>

please help me with this php installation problem .. still couldn find the solution .. i have this problem for a month..

my ./configure file looks like this ..

./configure --with-apxs=/usr/apache/bin/apxs -with-mysql

---------- Post updated at 08:21 PM ---------- Previous update was at 02:00 PM ----------

is my procedure right..? am i following the correct way...

Last edited by senkerth; 03-23-2011 at 11:49 AM..
# 6  
Old 03-25-2011
php installation ...

m facing the above problem for a month can anyone ... tell me how to solve the above problem .. i need to close this issue in my company as soon as possible ..
# 7  
Old 03-25-2011
Did you restart apache?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Package installation in Solaris 11

I have Solaris-11 and installed few non global zones inside it. I saw many of the packages are not installed in non global zone after installing it. root@pos_ddr01 # pkg list | wc -l 479 root@pos_ddr01 # root@pos_ddr01-zkmq01:~# pkg list | wc -l 206 root@pos_ddr01-zkmq01:~# I can... (1 Reply)
Discussion started by: solaris_1977
1 Replies

2. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

3. Solaris

problem in php installation..

hi am senthil, am trying to install PHP in my solaris 10 x86 ... i installed oracle,apache,tomcat,mysql .. the only thing am missing is PHP.. i tried to install php using ./configure .. my ./configure command.. ./configure \ --with-apxs=/usr/apache/bin/apxs \... (4 Replies)
Discussion started by: senkerth
4 Replies

4. Solaris

php installation problem..

hi am senthil, i want to install php 5 in my solaris 10 x86server.. i already enabled apache and my mysql 5 is woking fine.. i want to know the procedure to install php.. i googled it and got some info .. i have doubt in the following thing /configure -with-apache2=/opt/httpd-2.0.49... (1 Reply)
Discussion started by: senkerth
1 Replies

5. Solaris

Package installation dates

Hi All, I have a solaris machine, in which I wanted to find the Oracle Installation date and Solaris Installation date.Any ways of finding out the package installation dates. Kindly let me know Thanks Rj (1 Reply)
Discussion started by: jegaraman
1 Replies

6. UNIX for Advanced & Expert Users

PHP installation problem

Hey Linux experts, I am very new to Linux and PHP. I am trying to install php-5.3.2 on Linux(Centos), but I am getting an error as given below: cc1: out of memory allocating 2036 bytes after a total of 63528960 bytes make: *** Error 1 What is exactly meant by this error?Can someone guide... (5 Replies)
Discussion started by: mahesh_raghu
5 Replies

7. Red Hat

RPM package installation

Hi, can someone help me with this? How do we apply a new version of s/w package without disrupting the processes & daemons running with the old version? Thanks (1 Reply)
Discussion started by: naan
1 Replies

8. Solaris

Problem with solaris 10 installation package

Hi, I want to install man pages package from solaris 10. Solaris 10 has already been installed on my servor but I have to add the man pages packages. I search for a long time on internet this package but I didn't find a compatible one... So I downloaded Solaris 10 from Sun site to get this... (12 Replies)
Discussion started by: MasterapocA
12 Replies

9. UNIX for Advanced & Expert Users

Package Installation HELP!

To all, I have just installed a newer software package on one of our Performance testing AIX machine A. I later found out that this package didn't need to be installed on this machine cause it was a client and not a server package. I want to back out with pkgrm but the old package doesn't... (1 Reply)
Discussion started by: liketheshell
1 Replies

10. Solaris

Solaris Package Installation

Hi Friends,, I got a doubt about installing packages after the installation of Solaris 10. Suppose if we want to get smc tool by installing some packages from cd-3,, then how can we know the packages that has to be installed to get the smc tool. Can anyone help to solve this small... (1 Reply)
Discussion started by: sdspawankumar
1 Replies
Login or Register to Ask a Question