Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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


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 - 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 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
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

480 views 24 9
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