Ubuntu: Apache2: inlcude php pages do not show!


I installed LAMP and PHPmyadmin; seems to work correctly; html and php files under /var/www/html show correctly. I set up my php.ini to look for include files here: /srv/data/web/includes$ so I modified the php.ini located here /etc/php5/apache2/php.ini as folowed:

; UNIX: "/path1:/path2"  ;include_path = ".:/usr/share/php:/srv/data/web/includes"  

But I got a blank page! I did the exactly the same on a fresh install on another computer and it is working. Any ideas where can be the problem?


The process was the right one but stupidly enough I did not remove the comment mark in the php.ini

The correct code is (line 706)

;UNIX: "/path1:/path2"  include_path = ".:/usr/share/php:/srv/data/web/includes"  

and restart apache services

sudo service apache2 restart  

Voila Thanks @Frantique

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »