当我尝试在我的Ubuntu上安装本地lamb服务器上的Opensourcepos时,我得到服务器错误500。 我附上了错误输出。我将附上我所做的更改的屏幕截图。只是帮助我找出是什么导致错误。它可以正常工作与其他PHP文件。 错误500
这是我保存在html文件夹中的.htaccess文件
# redirect to public page <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !^public$ RewriteRule ^(.*)$ %{REQUEST_URI}public/ [R=301,L] </IfModule> # disable directory browsing # For security reasons, Option all cannot be overridden. Options +ExecCGI +Includes +IncludesNOEXEC +SymLinksIfOwnerMatch - Indexes # prevent folder listing IndexIgnore * # Apache 2.4 <IfModule authz_core_module> # secure htaccess file <Files .htaccess> Require all denied </Files> # prevent access to PHP error log <Files error_log> Require all denied </Files> # prevent access to LICENSE <Files LICENSE> Require all denied </Files> # prevent access to csv, txt and md files <FilesMatch "\.(csv|txt|md|yml|json|lock)$"> Require all denied </FilesMatch> </IfModule> # Apache 2.2 <IfModule !authz_core_module> # secure htaccess file <Files .htaccess> Order allow,deny Deny from all Satisfy all </Files> # prevent access to PHP error log <Files error_log> Order allow,deny Deny from all Satisfy all </Files> # prevent access to LICENSE <Files LICENSE> Order allow,deny Deny from all Satisfy all </Files> # prevent access to csv, txt and md files <FilesMatch "\.(csv|txt|md|yml|json|lock)$"> Order allow,deny Deny from all Satisfy all
纳米000-default.conf,我改变了DocumentRoot从/ var / www / html到/ var / www / html / public。 它之后,这个错误之前,它会显示所有的内容在HTML和HTML /公共无法访问,然后也。
另外我有疑问关于这个encryption描述我做了这个在导师询问
Now you want to add your encryption key. You can generate a CodeIgniter encryption key automatically using the Random Key Generator website. Type: nano config.php Find the code that says $config['encryption_key'] and add your key. Then press Ctrl-x to exit, making sure you save your changes.
5XX错误几乎肯定会在你的httpd日志中留下一条日志消息。 你应该跟踪这个错误信息,这些信息会帮助你最喜欢的search引擎和一些研究成果。