Thread: Phalcon Issue

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    137
    Rep Power
    0

    Unhappy Phalcon Issue


    Hi

    I am having this issue when I am trying to run my project . I have enabled the mod_rewrite in httpd.conf but I made the .htaccess file
    form the book I am reading. I am not getting the issue as its my first time using Phalcon .. here are the stuff

    Apache LOG file
    Code:
    [Wed Sep 26 16:26:15.021982 2018] [mpm_winnt:notice] [pid 6888:tid 412] AH00456: Apache Lounge VC14 Server built: Jul 15 2018 10:55:21
    [Wed Sep 26 16:26:15.021982 2018] [core:notice] [pid 6888:tid 412] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
    [Wed Sep 26 16:26:15.026982 2018] [mpm_winnt:notice] [pid 6888:tid 412] AH00418: Parent: Created child process 3096
    [Wed Sep 26 16:26:15.840029 2018] [ssl:warn] [pid 3096:tid 400] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Sep 26 16:26:16.027039 2018] [ssl:warn] [pid 3096:tid 400] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Sep 26 16:26:16.068042 2018] [mpm_winnt:notice] [pid 3096:tid 400] AH00354: Child: Starting 150 worker threads.
    [Wed Sep 26 16:26:22.348401 2018] [core:alert] [pid 3096:tid 1780] [client ::1:2915] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here
    [Wed Sep 26 16:26:23.904491 2018] [core:alert] [pid 3096:tid 1776] [client ::1:2917] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here
    [Wed Sep 26 16:26:30.285857 2018] [core:alert] [pid 3096:tid 1780] [client ::1:2918] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here
    [Wed Sep 26 16:49:11.161849 2018] [core:alert] [pid 3096:tid 1780] [client ::1:3095] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here
    [Wed Sep 26 16:49:12.031899 2018] [core:alert] [pid 3096:tid 1776] [client ::1:3096] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here
    [Wed Sep 26 16:50:04.562909 2018] [core:alert] [pid 3096:tid 1776] [client ::1:3133] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here
    [Wed Sep 26 16:50:09.077168 2018] [core:alert] [pid 3096:tid 1780] [client ::1:3132] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here
    [Wed Sep 26 16:58:32.815037 2018] [core:alert] [pid 3096:tid 1776] [client ::1:3779] C:/xampp/htdocs/project1/.htaccess: <VirtualHost not allowed here

    Error I am seeing when running the project
    Code:
    Server error!
    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
    
    If you think this is a server error, please contact the webmaster.
    
    Error 500
    localhost
    Apache/2.4.34 (Win32) OpenSSL/1.0.2o PHP/7.0.31

    .htaccess file
    Code:
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
    </IfModule>
    this file I made in apache folder name: project1.localhost.conf

    Code:
    <VirtualHost *:80>
    DocumentRoot C:/xampp/htdocs/project1
    DirectoryIndex index.php
    ServerName localhost
    ServerAlias C:/xampp/apache
    <Directory C:/xampp/htdocs/project1.localhost/public>
    Options All
    AllowOverride All
    Allow from all
    </Directory>
    </VirtualHost>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,473
    Rep Power
    653
    This looks like an Apache HTTPD error not a PHP error. I suggest you ask this on the Apache forum.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    137
    Rep Power
    0
    Thanks a lot

IMN logo majestic logo threadwatch logo seochat tools logo