Apache Web Server Setup- Getting Started Tutorial

For programming and general questions on Zend Framework
Post Reply
cris7600
Posts: 2
Joined: Thu Oct 05, 2017 10:44 am

Apache Web Server Setup- Getting Started Tutorial

Post by cris7600 » Thu Oct 05, 2017 10:53 am

Hello there,
I'm studying the following tutorial to learn Zend Framework:
docs zendframework com tutorials getting-started overview

I am using XAMPP, then I've created the project directory (zf-tutorial) in this position:

Code: Select all

C:\xampp\htdocs\zf-tutorial
Now I'm trying to setup my Apache web server; and more specifically I'm trying to make what is described on the following tutorial's page:
docs zendframework com tutorials getting-started skeleton-application #web-servers

at this paragraph: "Using the Apache Web Server".

Then I've opened the file:

Code: Select all

C:\xampp\apache\conf\extra\httpdd-vhostsDOTconf
I've ensured that this file is included in

Code: Select all

C:\xampp\apache\conf\httpdDOTconf
by checking the following two rows (I let them like they are):

Code: Select all

# Virtual hosts
Include conf/extra/httpd-vhostsDOTconf
I've written the following lines inside

Code: Select all

C:\xampp\apache\conf\extra\httpdd-vhostsDOTconf
:

Code: Select all

<VirtualHost *:80>
    ServerName zf-tutorialDOTlocalhost
    DocumentRoot "C:/xampp/htdocs/zf-tutorial/public"
	SetEnv APPLICATION_ENV "development"
	<Directory "C:/xampp/htdocs/dummy-host2DOTexampleDOTcom"> <!--tryied with and without quotes--> 
		DirectoryIndex indexDOTphp
		AllowOverride All
		Require all granted
	</Directory>
</VirtualHost>
Finally, I've added the following line to

Code: Select all

C:\Windows\System32\drivers\etc\hosts
:

Code: Select all

127 0 0 1       zf-tutorial.localhost localhost
Then, if I browse the address:

http zf-tutorial localhost

I don't get the Zend welcome page, as I was expecting.

Note: if I browse the address:

http localhost:80

I get the Zend welcome page.

Could anyone be so kind to help me getting the Zend welcome page, by browsing:

http zf-tutorial localhost

I sincerly thank you, in advance, anyone who will answer my messy quesiton; and I am sorry for the length of my post.

cris7600
Posts: 2
Joined: Thu Oct 05, 2017 10:44 am

Re: Apache Web Server Setup- Getting Started Tutorial

Post by cris7600 » Thu Oct 05, 2017 11:23 am

I'm sorry, after having restarted my pc, i can browse the page as I expected. Thank you anyway. bye

alex4065
Posts: 8
Joined: Thu Jan 11, 2018 4:22 pm

Re: Apache Web Server Setup- Getting Started Tutorial

Post by alex4065 » Thu Jan 11, 2018 4:34 pm

wow..the solution was so easy..and i was thinking and thinking and couldn't understand what went wrong

Post Reply