Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

blank page after install ocs-server


after a fresh installation of ocsinventory-server I get a blank page even if I call the servers IP. I only can see the php source file. My configuration as follows:



Alias / "/usr/share/ocsinventory-reports/ocsreports/"

<Directory "/usr/share/ocsinventory-reports/ocsreports/">

 Options Indexes MultiViews FollowSymLinks

 AllowOverride None

Order allow,deny

Allow from all




    max_execution_time = 180
    max_input_time = 180
    memory_limit = 256M
    upload_max_filesize = 300M   
    post_max_size = 300M

In /etc/apache2/conf-available/ there are the files ocsinventory-rports.conf, z-ocsinventory-server.conf and zz-ocsinventory-restapi.conf.
In /etc/apache2/conf-enabled/ there are the equivalent symbolic links.

Because it shouln't be that the php source file is shown, I think that is a problem with the Apache2 configuration.

Does anyone has an idea?

in OCS Inventory NG server for Unix by (1.2k points)

1 Answer

0 votes

I have never seen a forum so unattended, really bad!

To try to help those who have had the same problem:

Check if there are other versions of php installed on the system (typically in / etc / php you see several subfolders, I had both /7.0 and /7.3) then as root give the command to disable the non-current version, in my case:

 a2dismod php7.0

Then restart apache:

systemctl restart apache2


service apache2 restart

If you are lucky you should have solved it!

by (140 points)
edited by
Powered by Question2Answer