0

I am trying to run php and django on same apache server

I followed this link How do I run Django and PHP together on one Apache server?

httdp.vhost.conf file looks like

<VirtualHost *:80>
    LoadModule wsgi_module "c:/python/lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win32.pyd"
    DocumentRoot "D:/django/django-env/myproject"
    ServerName localhost
    WSGIScriptAlias / "D:/django/django-env/myproject/myproject/wsgi.py"
    <Directory "D:/django/django-env/myproject/myproject">
       Require all granted

    </Directory>
    </VirtualHost>

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/paperclip"
    ServerName php.localhost
    Alias / C:/xampp/htdocs/paperclip
    <Directory C:/xampp/htdocs/paperclip>
        Require all granted
        </Directory>
</VirtualHost>

What i am doing wrong? The Django project works fine but the PHP code is not running.
I get: 404 found error

M. Eriksson
  • 13,450
  • 4
  • 29
  • 40
nikki
  • 11
  • 5

0 Answers0