Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying web-application on apache2 server

Tags:

php

apache

ubuntu

I have installed/setup PHP5 and Apache2 server on Ubuntu and trying to deploy a dummy project on it.

enter image description here

The server is up and running.but the URL http://localhost/DemoWebApp gives me

Apache/2.4.7 (Ubuntu) Server at localhost Port 80.

enter image description here

What am I doing wrong or how do I set it up correctly?

Edit:

Project structure:

enter image description here

like image 340
Sandeep Chatterjee Avatar asked Dec 05 '25 08:12

Sandeep Chatterjee


2 Answers

move DemoWebApp into html folder and it should work

like image 155
Nimrod007 Avatar answered Dec 07 '25 21:12

Nimrod007


Set DocumentRoot in /etc/httpd/httpd.conf to /var/www or move DemoApp folder to /var/www/html

like image 32
Bogdan Kuštan Avatar answered Dec 07 '25 20:12

Bogdan Kuštan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!