Question

blank pages when on https

Posted November 4, 2013 9.8k views
I have a Ubuntu 12.04.3 server with Apache2 and Zpanel installed. For one of the domains on this server I ordered and SSL Certificate and installed it. Everything seems to work fine but when I visit the website in https I just get a blank page... without any source code. When I click the cert button next to the domain name it shows the certificate and verified by GeoTrust. Because of ZPanel i figured out I had to alter the /etc/zpanel/configs/apache/http-vhosts.conf file and add the -settings Because it didn't work I also altered - /etc/apache2/ports.conf (added Virtualhost *:443) - /etc/apache2/sites-available/default-ssl (added the cert and key files) Has anyone some suggestions to solve my blank page issue?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
5 answers
I believe it is an PHP issue... When I create a .html page it works correctly, but a .php page stays blank.
This is an error I see in my log files :
PHP Warning: Unknown: open_basedir restriction in effect. File(/var/zpanel/hostdata/zadmin/public_html/domain_com/index.php) is not within the allowed path(s): (/var/zpanel/hostdata/zadmin/public_html/domain$) in Unknown on line 0

PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

PHP Fatal error: Unknown: Failed opening required '/var/zpanel/hostdata/zadmin/public_html/domain_com/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
It seems like an error with zPanel's configuration. Try creating a thread here: http://forums.zpanelcp.com/
solved it, myself... thanks anyway
DigitalOcean seems to attract a lot of zPanel users. For the benefit of people that might encounter the same problem in the future... what was the solution?
a typo slipped in while altering the /etc/zpanel/configs/apache/http-vhosts.conf file... It was hard to find because the nano editor didn't show that part of the file because the text was too wide.
Submit an Answer