Internal Server Error (urgent)

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Internal Server Error (urgent)

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

m2babaey wrote:More information about this error may be available in the server error log.
what does the error.log say?
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Post 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
:(
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

That is the php error log, it is more interesting what is the content of the apache error log.
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Post 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
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

Are you sure the apache logs are saved in these files?
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Post by m2babaey »

no.
this is the first time i'm hearing apache logs.
where are they usually saved in?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

There's probably an ErrorLog directive in your httpd.conf
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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.
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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.
Post Reply