Sebastialonso Sebastialonso - 23 days ago 6
PHP Question

Not able to access index on local LAMP server on Linux Mint

I'm starting to play with Zend FrameWork, but I have had troubles with it. I try the follow the super guide From Zero To Zend Framework in 10 minutes, but it amounted to nothing.

I also was getting that annyoing message

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
twice.

And while I managed to fix that, this is how my local server looks like. enter image description here.

This is how my
/etc/hosts
looks like.

127.0.0.1 localhost
127.0.0.1 prueba.local
127.0.1.1 dradis

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


And, according to 1, how my vhost configuration should be. This is in
/sites-avaliable
but symlinked to
/sites-enabled
.

prueba.local
:

<VirtualHost *:80>
ServerName prueba.local
DocumentRoot /home/seba/solartekka/test/prueba/public
</VirtualHost>


/home/seba/solartekka/test/prueba
is where I have my project.

I have completed two days fighting with this, and my spirit is shattered. Does anyone have an idea of what may be happening?

I tried to give as much relevant information as I thoguht, but should you require more, I would happily deliver it.

Thanks!

Answer

At times, I have run into permission problems. As a test, try setting chmod 0777 public/index.php.

Also, you could try browsing directly to http://prueba.local/index.php.

Comments