MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
PHP should work regardless of whether you are root or not. What is the output of doing
Code:
#rpm -qa | grep -i php
yes it comes up with all the php files ok. It loaded all the rpm's for php, but it does not work in any of the browsers . It does not recognize files with the .php ending.
I know php works with apache 1.3 but it does not work when I use apache 2.
I have never yet got the php working with apache 2 on any machine nor any distro.
I have php working fine on Mandriva 2007.1 (32 bit). All I needed to do was install apache-mod_php and it just worked (the same applies for CentOS, Fedora and Gentoo). If php is not being parsed, then make sure that you have the lines below in your httpd.conf (or its related files)
barrythai, according to the thread that was closed asking the same question in the Mandriva forum you are still using a Release Candidate version of Mandriva 2007.1 Spring (Beijing). Be a love & upgrade through either urpmi --allow-force --auto-update in command line (as root; the --allow-force command takes care of dependency issues that will have you clicking y then Return for an eternity!) or downloading or otherwise obtaining a final release. Sorry to be negative & all that, but you have been bitching about how rubbish a Release Candidate is for about 2 months now, despite people repeatedly saying "It's a Release Candidate, & is therefore going to be buggy". Either you are really rather thick skinned, don't actually read any of the posts made in reply, or are just that strangest of cyber-creatures - a troll, sent to put people off what is a good distro...
I have php working fine on Mandriva 2007.1 (32 bit). All I needed to do was install apache-mod_php and it just worked (the same applies for CentOS, Fedora and Gentoo). If php is not being parsed, then make sure that you have the lines below in your httpd.conf (or its related files)
Code:
DirectoryIndex index.php
and
Code:
AddType text/html .php
Thanks I appreciate your reply. I had earlier versions working at the 32 bit level and was surprised that rc3 beijing did not work I'll work with that and keep trying the 64 bit version until I have working 64 bit version.
My problem is that the 64 bit version does not have the wireless drivers so it makes it very difficult to recommend Mandrivia at the moment.
I have to use one version on my LAMP desktop (64 bit version not yet fully tested) and the 32bit version on my 64 bit laptop where I use it for website demo's.
I wish they would sort this out. I still have to rely on the 10.1 mandrake 1.3 apache on a 64 bit version machine for LAMP.
I need apache 2+ to work at the 64 bit level on Mandrivia.
aka Mandrake.
2 years this problem has persisted in all distro's.
Barrythai, the problem here seems to be more user related than the distro. I run various distros all with apache 2, php and mysql working perfectly out of the box. It should not really matter whether you are using a 64 bit distro or a 32 bit distro because both versions are compiled using the same sources. On Mandriva 2007.1, I didn't even have to touch a single configuration file to get AMP working. The important thing it to go through the package manager and install apache, mysql, apache-mod_php, php-mysql and any other apache related modules you need. Also as mentioned above, use the released version of Mandriva 2007.1 and not a release candidate.
Barrythai, the problem here seems to be more user related than the distro. I run various distros all with apache 2, php and mysql working perfectly out of the box. It should not really matter whether you are using a 64 bit distro or a 32 bit distro because both versions are compiled using the same sources. On Mandriva 2007.1, I didn't even have to touch a single configuration file to get AMP working. The important thing it to go through the package manager and install apache, mysql, apache-mod_php, php-mysql and any other apache related modules you need. Also as mentioned above, use the released version of Mandriva 2007.1 and not a release candidate.
Thanks I have the 32bit version working and have never had a problem. The fact is I have yet to find a distro with the 64 bit version working with apache 2.
I had hoped the problem had been resolved, but yet to have someone say that they have a distro running apache 2 with php in the 64 bit version.
I am looking for the first distro that have fixed this problem. I am not blaming Mandriva it is not there fault. My servers all have to run the 32 bit versions with Beijing aka spring 2007. I am happy with the rc3 version. I do wish they had not left Quanta out though and making root an invisible entity, it really makes it more difficult in upgrading and testing there releases.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.