LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Does the apache 2 work with php in 2007 (https://www.linuxquestions.org/questions/mandriva-30/does-the-apache-2-work-with-php-in-2007-a-546201/)

barrythai 04-15-2007 08:22 AM

Does the apache 2 work with php in 2007
 
Cant get the php working in apache 2 on the 2007.1 rc3

Did this ever work with Mandrive 2007?

I thought the problem was only in the x86_64 version
now testing of 586 I find it still does not work.

Is it because you cannot use it as you cannot work at the root level.

:Pengy: :Pengy: :Pengy:

reddazz 04-16-2007 04:53 PM

PHP should work regardless of whether you are root or not. What is the output of doing
Code:

#rpm -qa | grep -i php

barrythai 04-17-2007 01:48 PM

Quote:

Originally Posted by reddazz
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.


:Pengy: :Pengy: :Pengy:

reddazz 05-08-2007 02:29 PM

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

miclem 05-08-2007 05:11 PM

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...

barrythai 05-08-2007 05:34 PM

Quote:

Originally Posted by reddazz
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.

:Pengy: :Pengy: :Pengy:

reddazz 05-08-2007 06:19 PM

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 05-12-2007 06:14 AM

Quote:

Originally Posted by reddazz
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.

:Pengy: :Pengy: :Pengy:


All times are GMT -5. The time now is 07:08 PM.