LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-29-2004, 04:11 PM   #1
uglyugly
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Rep: Reputation: 0
problems running php on slackware 9.1


i have install full slackware gnu/linux 9.1

apache is running. i have checked it at hxxp://localhost

when ever i try to run a php file it gives the bellow error

-------------------------------------------------------

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@midas.slackware.lan and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
-----------------------------------------------------

here is the error log entry


Quote:
Apache/1.3.28 Server at mailserver.localdomain Port 80

[Fri Jan 30 02:38:28 2004] [error] [client 127.0.0.1] Premature end of script headers: /var/www/html/omail/omail.pl
[Fri Jan 30 02:39:51 2004] [notice] caught SIGTERM, shutting down
[Fri Jan 30 02:53:32 2004] [notice] Apache/1.3.28 (Unix) configured -- resuming normal operations
[Fri Jan 30 02:53:32 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Jan 30 02:54:21 2004] [error] (8)Exec format error: exec of /var/www/html/squirrelmail-1.4.2/index.php failed
[Fri Jan 30 02:54:21 2004] [error] [client 127.0.0.1] Premature end of script headers: /var/www/html/squirrelmail-1.4.2/index.php
i have setup the Diretory entry and other entry to properly point to the paths

when is browse to the parent path it shows a directory listing of all the files.

i have chmod 755 the .php file

ScriptAlias is set to cgi and php

php module is loaded

the php script is of squirrelmail web based mail and rest of teh settings (qmail, apache, courrier, vpopmail, vqadmin and qmailadmin are working correctly) are ok

I am lost
 
Old 01-29-2004, 05:22 PM   #2
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
I cannot remember now the errors I got but I could not get php to work on Slack 9.1. Neither can I remember exactly what I did to fix it but I am fairly sure it was to uncomment this line right near the end of /etc/apache/httpd.conf :

Include /etc/apache/mod_php.conf

This is line 1065 in mine.

Good luck.
 
  


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
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Problems running Wine in Slackware 9.1 kamransoomro84 Linux - Software 2 06-02-2004 08:13 PM
how to get php running on slackware fatum Linux - Software 2 01-20-2004 12:32 PM
Problems running make install for php jimieee Linux - Software 5 12-30-2003 03:37 AM
problems running php script rhuser Linux - Software 5 02-14-2003 01:01 PM


All times are GMT -5. The time now is 07:16 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 Google+: linuxquestions
Open Source Consulting | Domain Registration