500 - internal server error?

I recently posted my project, which is php + smarty + mysql, on my httpd server. But I ran into an error that reads:

500 Internal Server Error

My OS is archlinux, and the httpd server and php were installed as follows:

sudo pacman -S apache php

If I use a test native php file that contains the following:

  <html>
    <head>
    <title>PHP Test Page</title>
    </head>
    <body>
    This is Arch Linux, running PHP.
    <?php
      phpinfo();
    ?>
    </body>
    </html>

It works correctly. This tells me php might work well. But why is my smart project not working? Is there anyone who has run into this problem?

+5
source share
5 answers

The information you provided is hard to say.

500 , , , - . - , 500, . , . , , , . , , , , .

, -, .

+6

Apache ( /var/log/httpd/error_log, ). .

+2

, .htaccess ( ).

+1

.

The configured Smarty cache directory (/ var / cache / Smarty) was configured with the wrong permissions, the apache process must create files in this directory.

This is the directory specified by the compile_dir directive.

BTW, the error_log file shows nothing with this error, Firebug shows 500 Internal server error.

+1
source

I was able to get the error information by specifying the error.log file inside

/ var / log / apache2

in ubuntu 16.04

0
source

All Articles