Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-20-2004, 01:09 AM   #1
Registered: May 2004
Distribution: Slackware 9.1
Posts: 47

Rep: Reputation: 15
internal server error :(

I get this on the browser when i try to run a php script..
In the error log, it says:
"Premature end of script headers"

Does anyone know what the problem might be?

Here's how i defined the directory where php scripts are, just in case:
ScriptAlias /forum/ "/var/www/cgi-bin/forum/"
<Directory "/var/www/cgi-bin/forum">
AddType aplication/x-php .php .php3 .php4
AddType aplication/x-php-source .phps
Options Execcgi
AllowOverride None
Order allow,deny
Allow from all

(I'm trying to set up phpbb on my apache server)

Old 06-20-2004, 06:22 AM   #2
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
I believe that if you were to shift your scripts to /var/www/html/ all would be fine. That the default directory anyway. And when you have apache running and type http://localhost in a browser you would see the directories under /var/www/html

Get it? I have jsut setup phpbb on my apache server so if you need any more advise, I guess i can help.
Old 06-20-2004, 01:18 PM   #3
Registered: May 2004
Distribution: Slackware 9.1
Posts: 47

Original Poster
Rep: Reputation: 15
i tried to move it to /var/www/htdocs/forum but it's still giving me the same error..
By the way, i also changed the doc_root of the php.ini file to /var/www (not sure if that was necessary..?)

In the error_log, i see that when i restart apache, it gives a warning:
[Sun Jun 20 00:17:42 2004] [notice] SIGUSR1 received. Doing graceful restart

PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions/' - cannot open shared object file: No such file or directory in Unknown on line 0

[Sun Jun 20 00:17:45 2004] [notice] Apache/1.3.28 (Unix) PHP/4.3.3 configured -- resuming normal operations

The file "" is in that directory, i don't see why it can't find it. It is also loaded by default in php.ini.


edit: i can't go to http://localhost since i didn't install any graphical interface, but the web server works fine for any html document.

Last edited by hsegtreas; 06-20-2004 at 01:34 PM.


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 Error (Internal Server Error) dwarf007 Linux - Software 1 07-17-2005 02:16 PM
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 03:23 AM
BugZilla Internal Server Error pnh73 Linux - Software 0 01-29-2005 07:44 AM
Internal Server Error ukrainet Linux - Newbie 10 11-30-2004 09:39 AM
Internal server error with axkit Mikessu Linux - Networking 0 04-22-2004 08:57 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration