Yup, that sounds exactly like my question last year. When executing the php file from the console, what user are you? Probably root. When the script is executed, the user will be the apache user (in my case www-data). What you need to do is the following..
- Open up the apache.conf file and under User see what user apache is running at. If the user is "Nobody", create a user called www-data and make apache run as that user.
- Install OOo for that user. I.e. su www-data and then launch OOo. That will take you through the OO set up.
If you have problems, let me know. I had the exact same issues.
H
PS On linux, never say "nothing happens". Check the logs, there will be something in there. (/var/log/apache2/error.log etc etc)