Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64
Original Poster
Rep:
modules in httpd
Quote:
Originally Posted by gilead
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
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.
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Posts: 64
Original Poster
Rep:
Drakconf / MCC (Mandriva Control Center)
Quote:
Originally Posted by gilead
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?
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/:
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/:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.