Page 1 of 1

Internal Server Error (urgent)

Posted: Wed Jul 25, 2007 3:00 am
by m2babaey
Hi
I copied a site from host to local host but any file i am calling I receive this error:
can you help me why this happens?
thanks
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost 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.
Apache/1.3.33 Server at 127.0.0.1 Port 80

Posted: Wed Jul 25, 2007 3:30 am
by volka
m2babaey wrote:More information about this error may be available in the server error log.
what does the error.log say?

Posted: Wed Jul 25, 2007 3:49 am
by m2babaey
i don't know where it is. i can just fine 1 fle typpe file named "error_log" and its information is out of date:
[31-Mar-2007 08:35:39] PHP Warning: main(/includes/functions/database.php): failed to open stream: No such file or directory in /home/hotique/public_html/includes/app_top.php on line 21
[31-Mar-2007 08:35:39] PHP Fatal error: main(): Failed opening required '/includes/functions/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hotique/public_html/includes/app_top.php on line 21
[10-May-2007 04:00:46] PHP Parse error: syntax error, unexpected ')' in /home/hotique/public_html/test.php on line 2
[14-May-2007 06:53:04] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/hotique/public_html/application/components/NDatabase/NDatabase.php:1495) in /home/hotique/public_html/application/components/NSession/NSession.php on line 34
[14-May-2007 06:53:04] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/hotique/public_html/application/components/NDatabase/NDatabase.php:1495) in /home/hotique/public_html/application/components/NSession/NSession.php on line 40
[14-May-2007 06:53:04] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/hotique/public_html/application/components/NDatabase/NDatabase.php:1495) in /home/hotique/public_html/application/components/NSession/NSession.php on line 40
[14-May-2007 06:53:04] PHP Fatal error: mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND apartments_status_id!=4 ORDER BY apartments_id ASC LIMIT 0,1' at line 1] in EXECUTE("SELECT apartments_id FROM apartments WHERE partners_id=? AND apartments_status_id!=4 ORDER BY apartments_id ASC LIMIT 0,1")
in /home/hotique/public_html/application/components/NADOdb/NADOdb.php on line 726
:(

Posted: Wed Jul 25, 2007 3:52 am
by miro_igov
That is the php error log, it is more interesting what is the content of the apache error log.

Posted: Wed Jul 25, 2007 3:58 am
by m2babaey
in this folder: G:\Programs\EasyPHP\apache\logs
I found 2 text files. access & error
but both of them are 0kb and empty

Posted: Wed Jul 25, 2007 3:59 am
by miro_igov
Are you sure the apache logs are saved in these files?

Posted: Wed Jul 25, 2007 4:12 am
by m2babaey
no.
this is the first time i'm hearing apache logs.
where are they usually saved in?

Posted: Wed Jul 25, 2007 4:45 am
by volka
There's probably an ErrorLog directive in your httpd.conf

Posted: Wed Jul 25, 2007 6:55 am
by miro_igov
But if you don't know about the apache logs maybe you don't know about httpd.conf and how apache works.

Posted: Wed Jul 25, 2007 8:17 am
by superdezign
If you are hosted under a host that provides cPanel, it should have a link to your error log as specified in your config.

Posted: Wed Jul 25, 2007 8:40 am
by miro_igov
superdezign, are you not too tired? i see your very "adequate" posts :)
I copied a site from host to local host but any file i am calling I receive this error:
If you are hosted under a host that provides cPanel, it should have a link to your error log as specified in your config.

Posted: Wed Jul 25, 2007 8:52 am
by superdezign
miro_igov wrote:superdezign, are you not too tired? i see your very "adequate" posts :)
I copied a site from host to local host but any file i am calling I receive this error:
If you are hosted under a host that provides cPanel, it should have a link to your error log as specified in your config.
Hehe, I thought he said from localhost to a host. It's more likely for you to receive server errors since a lot of hosts haven't yet upgraded to Apache 2, but it's easy for you to do so locally.