It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I use php inside a confluence page Edited

Hello Community,

is there a solution to the problem? I read the article and unfortunately only the iFrame works for me. But I would like to include the php script directly on the Confluence page. I put the php script on the whitelist and followed the instructions. Unfortunately nothing is displayed on the Confluence page. Can anyone help me?

 

Thanks for help

Daniel

3 answers

You might find this piece of documentation helpful.

EDIT: Or do you mean, you already followed these steps?

Yes, we followed these steps but aren't able to get the php file running locally

Thanks for your answer,
I know the article, unfortunately it doesn't work for me.

0 votes

What is not working?  Have you installed the module and checked the apache server can serve up php outside Confluence? 

What errors do you get when you try to view a page with php embedded in it?

Hi Nic, I'm a colleague of Daniel and working with him on that issue. We have installed the module and there is a running apache with php installed as well. We can't get php running, except in an iframe with an external adress which is whitelisted. And we need to get rid of the iFrame. I also looked for the home directory on the confluence-init.properties - file, which says it is /var/atlassian/application-data/confluence. I created a hello-world html file which I cannot access either, even when I access the server from our network via the ip-adress - that's one of he weird things. The confluence-init.properties file I found in /opt/atlassian/confluence/confluence. I tried several locations to access the pure html file and none of them led to success.

No matter if a *.php or *.html file, the error ist still the same 403 message...403.JPG

Sorry for the delay, I've been swamped.

If the html file does not work, then Apache is not configured to serve it up correctly.  I'm afraid I can't tell you how to fix that, I don't know what your config is.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

397 views 11 11
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you