We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Tuto "Tutorial - basic" : see index.php source code in my browser

My problem : on my browser (https://localhost/tuto/), no "Hello !", or something like that, but part of the index.php source code. I also tried with a new project ("phalcon project proj-name") : same problem.

It's my first try, so I don't know if it's an install problem or another problem. Install was not easy (Ubuntu 16.04, Apache 2.4.18, PHP 7.0, Phalcon DevTools 3.2.8, cphalcon 3.2.4). Known trouble with php 7, as I read.

I tried "print_r(get_loaded_extensions());" and "php phpinfo();". Seems to be OK.

Thank's for any help !

Hi @Mirmaou do you have "tuto" folder in localhost? if you try with a simple text file it's found?



1.5k

Hi Emilio Yes, my folder is named "tuto" and is seen by my browser. I can see a html file in my "apache directory", /var/www, in my case.



1.5k
Accepted
answer

Hello,

I tried Tosyn's solution, works fine : (Phalcon's install on Ubuntu 16.04) https://gist.github.com/Tosyn/fef6437dd3906ff200e471e478eaae95 Thank's