LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-08-2007, 08:12 PM   #1
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
PHP not working correctly with Horde


Hello All,
Alright, I have a web server with php and ssl enabled. I also have my mail server (via sendmail) working perfectly. What I am trying to do is get horde to work as well.

I downloaded and copied horde to '/var/www/htdocs/mail'
I installed all the packages that horde requires via the 'pear' command. This worked flawlessly.

I created the mysql database via 'mysql -u root -p < create.mysql.sql

I tested Horde via 'http://localhost/mail/test.php
The test is all good.

Now for finishing Configuration via http://localhost/mail/

Instead of showing a web page it shows me a list of files in the 'mail' folder. So I click on 'login.php' which immediately brings me to the Administrator horde screen in which I click on 'Administration > Setup" but after I click on that it just has a list of php files... no matter what one I open I just get another listing of the menu on the left. This menu consists of Horde, Administration, Mail, Etc.

Does anybody have any ideas as to why apache doesnt automatically load the index.php page for example?

Thanks,
DragonM15
 
Old 10-08-2007, 08:42 PM   #2
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
The last part of my httpd.conf files looks like:
Code:
# ==> mod_php configuration settings <==
#
# PACKAGES REQUIRED:  openssl-solibs (A series) and/or openssl (N series),
#                     mysql (AP series), gmp (L series), mhash (L series),
#                     and apache (N series)
#
Include /etc/apache/mod_php.conf

# ==> mod_ssl configuration settings <==
#
# PACKAGES REQUIRED:  apache (N series) and openssl (N series)
#
Include /etc/apache/mod_ssl.conf
I have openssl installed, mysql, gmp, mhash, and apache.

My mod_php.conf file looks like:
Code:
# Load the PHP module:
LoadModule php4_module libexec/apache/libphp4.so

# Tell Apache to feed all *.php files through the PHP module:
AddType application/x-httpd-php .php

# This will display PHP files in colored syntax form.  Use with caution.
#AddType application/x-httpd-php-source .phps
php --version returns:
PHP 4.4.7 (cli) (built: May 7 2007 21:28:07)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

My mod_ssl.conf is too long to post here, so if you want any bits and pieces let me know and I will be glad to post.

Please let me know if you have any ideas.

Thanks,
DragonM15
 
Old 10-08-2007, 10:35 PM   #3
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
Quote:
Originally Posted by DragonM15 View Post
Does anybody have any ideas as to why apache doesnt automatically load the index.php page for example?
php is not a default file extension. You need to add index.php to your DirectoryIndex line.

Mine looks like this:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php index.shtml
</IfModule>
#
#

Last edited by Kahless; 10-08-2007 at 10:38 PM.
 
Old 10-09-2007, 12:11 AM   #4
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
That fixed that. Thank you Kahless.

Now, horde decided I dont need a navigation bar anymore Not quite sure what happened there. Oh well, all in a days work.

Thanks,
DragonM15
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PhP not working correctly in Suse 9.3 webwolf70 Suse/Novell 14 10-29-2005 09:33 AM
PHP not working correctly AMMullan Programming 4 07-07-2004 02:32 PM
IMP+Horde on PHP 4.3.7 Ryand833 Linux - Software 0 07-04-2004 12:58 PM
Horde, PHP and MySQL Mux Linux - Software 1 02-25-2004 04:38 AM
Crypt in PHP and RH8 not working correctly. sschueller Linux - Software 0 03-06-2003 05:10 PM


All times are GMT -5. The time now is 06:14 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration