LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-25-2006, 12:24 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

Rep: Reputation: 30
PHP on Apache


I've installed Apache and I can't seem to make my webERP work on it. I've included it in alias (/weberp). But when I tried to go to http://localhost/weberp, it prompts me to download a phtml file instead of displaying the login screen of weberp. Am I missing something here? I mean how can I resolve this?
 
Old 05-25-2006, 12:36 AM   #2
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
You probably need to add index.phtml (or the name of the file the browser wants to download) at the end of the DirectoryIndex config line in httpd.conf

e.g., DirectoryIndex index.html index.php index.phtml -- you need to restart apache.

A quick easy check would be to make a .htaccess file in the weberp directory and put this line in: DirectoryIndex index.phtml -- no restart necessary. Try it, see what happens.

You may need to configure Apache to recognize the .phtml extension as a php file, also.
 
Old 05-25-2006, 03:18 AM   #3
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Rep: Reputation: 30
Did you install PHP?
 
Old 05-25-2006, 03:44 AM   #4
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
SweetLou: I've installed PHP4. What other packages do I need to install to make it work?

VLS: I already did but the same problem occured. Any other ideas?
 
Old 05-25-2006, 01:20 PM   #5
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Rep: Reputation: 30
Just wanted to make sure, you only said you installed apache. Then you probably need to tell apache to handle .phtml files as PHP files. looke at http://www.roundridge.com/hs/apache-php-homesite05.php
You didn't mention which apache you installed, so the x.conf file might have a different name.
 
Old 05-25-2006, 07:37 PM   #6
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
I installed the old Apache 1.1.3 i guess. I didn't installed the Apache2 because I can't seem to make the document root work.
 
Old 05-25-2006, 08:57 PM   #7
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Rep: Reputation: 30
Did changing the configuration file help?
 
Old 05-25-2006, 09:22 PM   #8
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Nope..Nothing happenned. I think I need to install the php4 modules but I don't know what package to install from the synaptics.
 
Old 05-26-2006, 12:49 AM   #9
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Rep: Reputation: 30
Do any php files work?
You can make a simple .php file:
<?
phpinfo();
?>
then run that to see if it is working and the configurations. I have never used webERP, but I saved above as info.phtml and it worked fine.

I am running apache2 with PHP4. The things I have installed are:
php4
libapche2-mod-php4
php4-common
php4-gd
php4-imagick
php4-mcal
php4-mysql
php4-odbc
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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