LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2008, 05:15 PM   #1
FirstBorn
Member
 
Registered: Jul 2008
Location: Hell - aka - Florida
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64

Rep: Reputation: 15
Using Apache 2 will not load php5


Hi,

Thanks for helping.

I just installed Apache 2, php5, and mySQL.

Testing out the Apache by going to localhost/phpinfo.php and
it's displaying the php code, not the actual phpinfo(); code.

I've edited the httpd.conf file to Load the module:
Code:
# Use for PHP 5.x:
LoadModule php5_module modules/libphp5.so
AddHandler php5-script php
Apache will not reload until I comment out the LoadModule code
above, therefore, php5 is not loading.

Any ideas?

Thanks,
FirstBorn
 
Old 07-07-2008, 05:41 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
On my boxes I have the following:
Code:
LoadModule php5_module        modules/libphp5.so
DirectoryIndex index.html index.html.var index.php
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
But I don't have the AddHandler php5-script php line.
 
Old 07-07-2008, 06:03 PM   #3
FirstBorn
Member
 
Registered: Jul 2008
Location: Hell - aka - Florida
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64

Original Poster
Rep: Reputation: 15
libphp5.so

Quote:
Originally Posted by gilead View Post
On my boxes I have the following:
Code:
LoadModule php5_module        modules/libphp5.so
DirectoryIndex index.html index.html.var index.php
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
But I don't have the AddHandler php5-script php line.
Hi Steve,

Thanks for the sample code.

Tried it out and got the same issue,
httpd will not reload with the libphp5.so code
included in the LoadModule section.

No, I don't even have a "modules" directory in
My /etc/httpd/conf directory...
Only a "addon-modules" folder and that folder is
Empty.

Any Ideas?

Thanks.

Christopher
"FirstBorn"
 
Old 07-07-2008, 06:22 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have other modules loaded and if so, is their path modules/module_name? The location of a module can be an absolute path but it is usually a path relative to ServerRoot - the ServerRoot directive is also in the httpd.conf file.

If you have no other modules, I'd put the PHP module in the addon-modules directory and modify the httpd.conf file to use that directory.
 
Old 07-07-2008, 06:45 PM   #5
FirstBorn
Member
 
Registered: Jul 2008
Location: Hell - aka - Florida
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64

Original Poster
Rep: Reputation: 15
modules in httpd

Quote:
Originally Posted by gilead View Post
Do you have other modules loaded and if so, is their path modules/module_name? The location of a module can be an absolute path but it is usually a path relative to ServerRoot - the ServerRoot directive is also in the httpd.conf file.

If you have no other modules, I'd put the PHP module in the addon-modules directory and modify the httpd.conf file to use that directory.
Hi Steve,

Thanks for showing Me where to look.

Here is a line in the "LoadModule" section:
Code:
LoadModule version_module modules/mod_version.so
I even attempted to create a 'modules directory' and downloaded a
'libphp5.so' file and placed it in that directory to no avail.

I found the 'module' directory:
/ext/httpd
copied the "libphp5.so" file into the
/ext/httpd/modules directory.

Went to start httpd and:
Here is the error that I generated starting httpd:
Code:
httpd: Syntax error on line 267 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: ELF file data encoding not little-endian
Any Ideas?

Thanks,
Christopher
 
Old 07-07-2008, 08:00 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It looks like it's finding the module so you have it in the right place. But the file you downloaded is in the wrong format for your box. I'd suggest either re-installing your PHP package or re-compiling it if you built it from source.
 
Old 07-07-2008, 08:45 PM   #7
FirstBorn
Member
 
Registered: Jul 2008
Location: Hell - aka - Florida
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64

Original Poster
Rep: Reputation: 15
Drakconf / MCC (Mandriva Control Center)

Quote:
Originally Posted by gilead View Post
It looks like it's finding the module so you have it in the right place. But the file you downloaded is in the wrong format for your box. I'd suggest either re-installing your PHP package or re-compiling it if you built it from source.
Hi Steve,

Thanks.

I used the Drakconf / Mandriva Control Center program to
update the packages, installing /manage software packages,
etc...

The file was downloaded from an online site, so I guess
that their Box has a different Distro than Mine...

Is there a way to recompile/reformat that file to be
compatible with My PC?

Or, maybe any other ideas?

Thanks,
Christopher
 
Old 07-07-2008, 09:22 PM   #8
jdines
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Rep: Reputation: 0
Exclamation Stop doing things the hard way. You use Mandriva!

How did you install php5 libraries?

With Mandriva, always install using the GUI or the urpmi script, e.g.:

Code:
[root@msg Build]# urpmi apache-mod_php
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch
(medium "main")
  apache-mod_php                 5.2.5        5mdv2008.1    i586
  apache-modules                 2.2.8        6mdv2008.1    i586
  apache-mpm-prefork             2.2.8        6mdv2008.1    i586
  ccp                            0.4.1        1mdv2008.1    noarch
  php-ini                        5.2.5        2mdv2008.1    i586
  php-suhosin                    0.9.23       3mdv2008.1    i586
(medium "main_updates")
  php-ctype                      5.2.5        14.1mdv2008.1 i586
  php-dom                        5.2.5        14.1mdv2008.1 i586
  php-filter                     5.2.5        14.1mdv2008.1 i586
  php-ftp                        5.2.5        14.1mdv2008.1 i586
  php-gettext                    5.2.5        14.1mdv2008.1 i586
  php-hash                       5.2.5        14.1mdv2008.1 i586
  php-json                       5.2.5        14.1mdv2008.1 i586
  php-openssl                    5.2.5        14.1mdv2008.1 i586
  php-posix                      5.2.5        14.1mdv2008.1 i586
  php-session                    5.2.5        14.1mdv2008.1 i586
  php-sysvsem                    5.2.5        14.1mdv2008.1 i586
  php-sysvshm                    5.2.5        14.1mdv2008.1 i586
  php-tokenizer                  5.2.5        14.1mdv2008.1 i586
  php-xmlreader                  5.2.5        14.1mdv2008.1 i586
  php-xmlwriter                  5.2.5        14.1mdv2008.1 i586
  php-zlib                       5.2.5        14.1mdv2008.1 i586
2MB of additional disk space will be used.
1.2MB of packages will be retrieved.
Proceed with the installation of the 22 packages? (Y/n) y

    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/php-ini-5.2.5-2mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/ccp-0.4.1-1mdv2008.1.noarch.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/apache-mpm-prefork-2.2.8-6mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/php-suhosin-0.9.23-3mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/apache-modules-2.2.8-6mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-sysvshm-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-gettext-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-hash-5.2.5-14.1mdv2008.1.i586.rpm
installing php-ini-5.2.5-2mdv2008.1.i586.rpm ccp-0.4.1-1mdv2008.1.noarch.rpm php-sysvshm-5.2.5-14.1mdv2008.1.i586.rpm apache-mpm-prefork-2.2.8-6mdv2008.1.i586.rpm php-gettext-5.2.5-14.1mdv2008.1.i586.rpm apache-modules-2.2.8-6mdv2008.1.i586.rpm php-suhosin-0.9.23-3mdv2008.1.i586.rpm php-hash-5.2.5-14.1mdv2008.1.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     #################################################################
     1/22: ccp                   #################################################################
     2/22: php-ini               #################################################################
     3/22: php-hash              #################################################################
     4/22: php-suhosin           #################################################################
     5/22: php-gettext           #################################################################
     6/22: php-sysvshm           #################################################################
     7/22: apache-modules        #################################################################
     8/22: apache-mpm-prefork    #################################################################

    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-xmlwriter-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-ftp-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-tokenizer-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-openssl-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-dom-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-xmlreader-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-zlib-5.2.5-14.1mdv2008.1.i586.rpm
installing php-tokenizer-5.2.5-14.1mdv2008.1.i586.rpm php-ftp-5.2.5-14.1mdv2008.1.i586.rpm php-xmlwriter-5.2.5-14.1mdv2008.1.i586.rpm php-xmlreader-5.2.5-14.1mdv2008.1.i586.rpm php-dom-5.2.5-14.1mdv2008.1.i586.rpm php-openssl-5.2.5-14.1mdv2008.1.i586.rpm php-zlib-5.2.5-14.1mdv2008.1.i586.rpm php-filter-5.2.5-14.1mdv2008.1.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     #################################################################
     9/22: php-dom               #################################################################
    10/22: php-tokenizer         #################################################################
    11/22: php-ftp               #################################################################
    12/22: php-xmlwriter         #################################################################
    13/22: php-xmlreader         #################################################################
    14/22: php-openssl           #################################################################
    15/22: php-zlib              #################################################################
    16/22: php-filter            #################################################################

    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/apache-mod_php-5.2.5-5mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-ctype-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-session-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-sysvsem-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-posix-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-json-5.2.5-14.1mdv2008.1.i586.rpm
installing php-session-5.2.5-14.1mdv2008.1.i586.rpm php-ctype-5.2.5-14.1mdv2008.1.i586.rpm php-posix-5.2.5-14.1mdv2008.1.i586.rpm php-sysvsem-5.2.5-14.1mdv2008.1.i586.rpm apache-mod_php-5.2.5-5mdv2008.1.i586.rpm php-json-5.2.5-14.1mdv2008.1.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     #################################################################
    17/22: php-json              #################################################################
    18/22: php-sysvsem           #################################################################
    19/22: php-posix             #################################################################
    20/22: php-ctype             #################################################################
    21/22: php-session           #################################################################
    22/22: apache-mod_php        #################################################################
There is no need to edit httpd.conf. Mandriva does all that stuff for you! It seems to work a lot like the init scripts. For informational purposes, mod_php5 winds up in /usr/lib/apache-extramodules/:

Code:
[root@msg Build]# updatedb
[root@msg Build]# locate mod_php
/etc/httpd/modules.d/70_mod_php.conf
/usr/lib/apache-extramodules/mod_php5.so
/usr/share/webmin/apache/mod_php.pl
/usr/share/webmin/apache/mod_php3.pl
/usr/share/webmin/apache/mod_php4.pl
/usr/share/webmin/apache/mod_php5.pl
Once you have done as above, everything should "just work" ;-)

Cheers
 
Old 07-07-2008, 09:38 PM   #9
FirstBorn
Member
 
Registered: Jul 2008
Location: Hell - aka - Florida
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64

Original Poster
Rep: Reputation: 15
Holy Cow, it WORKS!!!

jdines, I have a Q for You...

HOW did You KNOW How to FIX THIS?!?

I won't even need to 'check' on mySQL being
installed properly 'cause it's in the phpinfo(); list!

You, jdines, are My NEW Best Friend!
(well, for today, that is... haha)

Thank You Thank You Thank You VERY VERY VERY Much!

Seriously, what resources do I need to get to Your level?

Thanks,
Christopher

PS. Since You knew the rest, how 'bout letting Me
know how to make My Desktop Icons Smaller?

------------------------------
Quote:
Originally Posted by jdines View Post
How did you install php5 libraries?

With Mandriva, always install using the GUI or the urpmi script, e.g.:

Code:
[root@msg Build]# urpmi apache-mod_php
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch
(medium "main")
  apache-mod_php                 5.2.5        5mdv2008.1    i586
  apache-modules                 2.2.8        6mdv2008.1    i586
  apache-mpm-prefork             2.2.8        6mdv2008.1    i586
  ccp                            0.4.1        1mdv2008.1    noarch
  php-ini                        5.2.5        2mdv2008.1    i586
  php-suhosin                    0.9.23       3mdv2008.1    i586
(medium "main_updates")
  php-ctype                      5.2.5        14.1mdv2008.1 i586
  php-dom                        5.2.5        14.1mdv2008.1 i586
  php-filter                     5.2.5        14.1mdv2008.1 i586
  php-ftp                        5.2.5        14.1mdv2008.1 i586
  php-gettext                    5.2.5        14.1mdv2008.1 i586
  php-hash                       5.2.5        14.1mdv2008.1 i586
  php-json                       5.2.5        14.1mdv2008.1 i586
  php-openssl                    5.2.5        14.1mdv2008.1 i586
  php-posix                      5.2.5        14.1mdv2008.1 i586
  php-session                    5.2.5        14.1mdv2008.1 i586
  php-sysvsem                    5.2.5        14.1mdv2008.1 i586
  php-sysvshm                    5.2.5        14.1mdv2008.1 i586
  php-tokenizer                  5.2.5        14.1mdv2008.1 i586
  php-xmlreader                  5.2.5        14.1mdv2008.1 i586
  php-xmlwriter                  5.2.5        14.1mdv2008.1 i586
  php-zlib                       5.2.5        14.1mdv2008.1 i586
2MB of additional disk space will be used.
1.2MB of packages will be retrieved.
Proceed with the installation of the 22 packages? (Y/n) y

    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/php-ini-5.2.5-2mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/ccp-0.4.1-1mdv2008.1.noarch.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/apache-mpm-prefork-2.2.8-6mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/php-suhosin-0.9.23-3mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/apache-modules-2.2.8-6mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-sysvshm-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-gettext-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-hash-5.2.5-14.1mdv2008.1.i586.rpm
installing php-ini-5.2.5-2mdv2008.1.i586.rpm ccp-0.4.1-1mdv2008.1.noarch.rpm php-sysvshm-5.2.5-14.1mdv2008.1.i586.rpm apache-mpm-prefork-2.2.8-6mdv2008.1.i586.rpm php-gettext-5.2.5-14.1mdv2008.1.i586.rpm apache-modules-2.2.8-6mdv2008.1.i586.rpm php-suhosin-0.9.23-3mdv2008.1.i586.rpm php-hash-5.2.5-14.1mdv2008.1.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     #################################################################
     1/22: ccp                   #################################################################
     2/22: php-ini               #################################################################
     3/22: php-hash              #################################################################
     4/22: php-suhosin           #################################################################
     5/22: php-gettext           #################################################################
     6/22: php-sysvshm           #################################################################
     7/22: apache-modules        #################################################################
     8/22: apache-mpm-prefork    #################################################################

    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-xmlwriter-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-ftp-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-tokenizer-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-openssl-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-dom-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-xmlreader-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-zlib-5.2.5-14.1mdv2008.1.i586.rpm
installing php-tokenizer-5.2.5-14.1mdv2008.1.i586.rpm php-ftp-5.2.5-14.1mdv2008.1.i586.rpm php-xmlwriter-5.2.5-14.1mdv2008.1.i586.rpm php-xmlreader-5.2.5-14.1mdv2008.1.i586.rpm php-dom-5.2.5-14.1mdv2008.1.i586.rpm php-openssl-5.2.5-14.1mdv2008.1.i586.rpm php-zlib-5.2.5-14.1mdv2008.1.i586.rpm php-filter-5.2.5-14.1mdv2008.1.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     #################################################################
     9/22: php-dom               #################################################################
    10/22: php-tokenizer         #################################################################
    11/22: php-ftp               #################################################################
    12/22: php-xmlwriter         #################################################################
    13/22: php-xmlreader         #################################################################
    14/22: php-openssl           #################################################################
    15/22: php-zlib              #################################################################
    16/22: php-filter            #################################################################

    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/release/apache-mod_php-5.2.5-5mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-ctype-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-session-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-sysvsem-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-posix-5.2.5-14.1mdv2008.1.i586.rpm
    ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/2008.1/i586/media/main/updates/php-json-5.2.5-14.1mdv2008.1.i586.rpm
installing php-session-5.2.5-14.1mdv2008.1.i586.rpm php-ctype-5.2.5-14.1mdv2008.1.i586.rpm php-posix-5.2.5-14.1mdv2008.1.i586.rpm php-sysvsem-5.2.5-14.1mdv2008.1.i586.rpm apache-mod_php-5.2.5-5mdv2008.1.i586.rpm php-json-5.2.5-14.1mdv2008.1.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     #################################################################
    17/22: php-json              #################################################################
    18/22: php-sysvsem           #################################################################
    19/22: php-posix             #################################################################
    20/22: php-ctype             #################################################################
    21/22: php-session           #################################################################
    22/22: apache-mod_php        #################################################################
There is no need to edit httpd.conf. Mandriva does all that stuff for you! It seems to work a lot like the init scripts. For informational purposes, mod_php5 winds up in /usr/lib/apache-extramodules/:

Code:
[root@msg Build]# updatedb
[root@msg Build]# locate mod_php
/etc/httpd/modules.d/70_mod_php.conf
/usr/lib/apache-extramodules/mod_php5.so
/usr/share/webmin/apache/mod_php.pl
/usr/share/webmin/apache/mod_php3.pl
/usr/share/webmin/apache/mod_php4.pl
/usr/share/webmin/apache/mod_php5.pl
Once you have done as above, everything should "just work" ;-)

Cheers
 
Old 07-07-2008, 09:48 PM   #10
FirstBorn
Member
 
Registered: Jul 2008
Location: Hell - aka - Florida
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64

Original Poster
Rep: Reputation: 15
Hi Steve,

Just to let You know, I REALLY DO Appreciate Your Help, as well!

Thank You VERY Much for helping.

Thanks,
Christopher
 
Old 07-08-2008, 06:51 AM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Me? I'm glad that jdines new how the Mandrake package system worked...
 
Old 07-08-2008, 10:33 PM   #12
jdines
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Rep: Reputation: 0
Talking How do you get to Carnegie Hall?

Quote:
Seriously, what resources do I need to get to Your level?
It is not humanly possible to get to my level (or in Maine-speak 'ya caaant get theya from heya')

Seriously though, it is a matter of experience, application, and a fair dose of following and participating in the alt.linux.os.mandriva newsgroup, which I used to do regularly.

In this case, my earlier advice to you in another thread is key. Always use the Mandriva package management tools, unless there is no other way. The only case I can think of where building from the source is required is for the very latest kernels, and moto4lin (see moto4lin.sourceforge.org)

If you use the GUI software install tool and search for mod_php you will see that it is in the repository, and that it is named apache-mod_php. By selecting it and clicking apply, Mandriva will do the rest. The equivalent is to pass the same package name to urpmi (as root), as I showed. Mandriva handles all the dependencies, and sets things up right, because it knows you wouldn't want to install apache-mod_php unless you also wanted to use it.

For more info on urpmi, try the following in a console:

Code:
man urpmi

Also, a command called apropos is your friend:

Code:
[jdines@msg netlink]$ apropos rpm

pamsharpmap          (1)  - create map of sharpness in a PNM/PAM image
proxy.cfg [proxy]    (5)  - urpmi proxy configuration file format
rpm2cpio             (8)  - Extract cpio archive from RPM Package Manager (RPM) package
rpm                  (8)  - RPM Package Manager
rpmatch              (3)  - determine if the answer to a question is affirmative or negative
rpmbuild             (8)  - Build RPM Package(s)
rpmcache             (8)  - Cache RPM Package Headers
rpmdeps              (8)  - Generate RPM Package Dependencies
rpmgraph             (8)  - Display RPM Package Dependency Graph
rurpme               (8)  - restricted urpme
rurpmi               (8)  - restricted urpmi
tap2rpm              (1)  - create RPM packages which wrap .tap files
urpm                 (3pm)  - Mandriva perl tools to handle the urpmi database
URPM                 (3pm)  - Manipulate RPM files and headers
urpm::args           (3pm)  - command-line argument parser for the urpm* tools
urpm::cfg            (3pm)  - routines to handle the urpmi configuration files
urpm::download       (3pm)  - download routines for the urpm* tools
urpme                (8)  - rpm deinstaller
urpmf                (8)  - Finds the packages matching some conditions
urpmi                (8)  - rpm downloader, installer and dependency solver
urpmi.addmedia [urpmi] (8)  - adds a new rpm media to be used by urpmi
urpmi.cfg [urpmi]    (5)  - urpmi option and media configuration file format
urpmi.files [urpmi]  (5)  - files used by the urpmi tools
urpmihowto           (8)  - urpmi Advanced How-To
urpmi.removemedia [urpmi] (8)  - remove a rpm media from the known media of urpmi
urpmi.update [urpmi] (8)  - Updates package lists for specified media
urpm::ldap           (3pm)  - routines to handle configuration with ldap
urpm::msg            (3pm)  - routines to prompt messages from the urpm* tools
urpm::prompt         (3pm)  - base class to prompt the user for data
urpmq                (8)  - urpmi database query tool
urpm::sys            (3pm)  - OS-related routines for urpmi
urpm::util           (3pm)  - Misc. utilities subs for urpmi
It shows everything apropos (i.e. appropriate/related) to a subject. The above command lists all the commands related to the Redhat Package Manager (RPM), which is what Mandriva uses. You can then check the manual pages for ones that look like what you might want, e.g. you might:
Code:
man urpmq
... once you see it in the output of apropos rpm, if you wanted help querying the rpm database.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot load PHP5 with Apache2 shrimpwagon Linux - Software 2 08-31-2006 06:01 AM
Cannot load PHP5 with Apache2 shrimpwagon Linux - General 1 08-30-2006 10:48 PM
Apache2 + php5 won't load mustangfanatic Slackware 9 04-19-2006 12:45 PM
cannot load php5 module in apache 2, compile from source parv Linux - Software 6 02-17-2006 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration