LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-15-2007, 08:22 AM   #1
barrythai
Member
 
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381

Rep: Reputation: 30
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.

 
Old 04-16-2007, 04:53 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
PHP should work regardless of whether you are root or not. What is the output of doing
Code:
#rpm -qa | grep -i php
 
Old 04-17-2007, 01:48 PM   #3
barrythai
Member
 
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381

Original Poster
Rep: Reputation: 30
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.


 
Old 05-08-2007, 02:29 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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
 
Old 05-08-2007, 05:11 PM   #5
miclem
Member
 
Registered: Jan 2005
Distribution: Mandriva 2009 Powerpack x64
Posts: 80

Rep: Reputation: 15
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...
 
Old 05-08-2007, 05:34 PM   #6
barrythai
Member
 
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381

Original Poster
Rep: Reputation: 30
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.

 
Old 05-08-2007, 06:19 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 05-12-2007, 06:14 AM   #8
barrythai
Member
 
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381

Original Poster
Rep: Reputation: 30
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.

 
  


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
Apache and php in 64bit 2007 barrythai Mandriva 2 12-12-2006 06:46 AM
apache+php+unixODBC don't work Taxinha Linux - Software 0 05-17-2006 04:23 AM
PHP 5.1.0 and Apache 2.0.55 don't work together polemon Linux - Software 8 12-04-2005 12:57 PM
Apache, MySql, PHP work on 10.0 but not 10.1 fireman949 Slackware 3 02-28-2005 11:36 PM
Can't get PHP and apache to work together FrostGunner Linux - Software 3 09-11-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:30 PM.

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