I am trying to migrate an OpenX adserver to a new server. Apache, MySQL and PHP are all installed, but when accessing the site from any browser, a blank white page is displayed.
I have tried putting a one-line .html file and a PHP file with phpinfo(); in it - both work just fine, the PHP file displays all relevant information, but the default administration login page doesn't load.
The file structure and the database were copied over from the previous server (where everything worked perfectly) and I have modified the Apache Virtual Server settings to have it show to the current directory where the files are located.
The OS on the new server is Ubuntu 14.04 LTS.
Any ideas what could be going wrong?
By default, PHP displays a blank page when an error occurs. Check your error.log or add the following to your PHP:
error_reporting(E_ALL);
ini_set('display_errors', 1);
Related
I'm using windows 10 width manually installed :
MySQL (5.7) and PHP (7.2.3) and a uncompressed phpadmin (v4.7.9) folder.
To validate PHP install i created a phpinfo page, which works.
But when i want to go to the phpadmin site and run index.php I get :
"Http Error 500, thats odd... the website can't display the page".
And sadly thats all, its not much information.
There is no info beyond that,nothing usefull in IIS logs, or in Windows eventlogs.
If create a minimal phpinfo file in phpadmin folder then it just shows php server info (proving php works). I also checked that all required libs for phpadmin are configured in php.ini its ok.
So php works, mysql works, but the glue of phpadmin isnt working, how can validate phpadmin configuration ?.
I have installed php 7.0 and the apache2 server on my machine and made sure that the apache server is running (when I go to localhost, it shows the index.html page). I created a testdirectory, set the right permissions for it and placed a sample hello.php file in there. All it contains is:
<?php echo "it's working fine"; ?>
When I go to localhost/testdirectory I can see my hello.php file in the index, but when I click on it, there is no output.
However, if I run the php file through cli, I get the output, so the php is working fine.
Please tell me where am I going wrong?
I copied a wordpress installation into my html-folder on my server var/www/html, but it does not show up in my browser afterwards, instead it shows a apache test-page which is located in var/www/error.
If I copy a file named index.html into html-folder, it indeed shows up when I visit my website. To test PHP i have created a index.php on /var/www/html/test/ now once i go to mydomainname/test/index.php then it shows only PHP soruce code. Apache and PHP are installed on my CentOS, also restarted apache after that. Can you help?
After extensive search, double checking install, reinstalling, troubleshooting, I don't know where to turn next.
Background:
I'm trying to get a wiki working using MediaWiki.
I have PHP Manager installed for IIS 7.
I have a MySQL server installed on the same machine.
PHP version is 5.6.5 and installed at C:\PHP.
The main issue:
Locally I can view the index.php file, but not externally.
I get a generic page can't be displayed error if linking to the /w/ directory.
Depending on the browser I'll get two results when linking to w/index.php:
page can't be displayed
IIS 404.0 Error.
Depending on the browser I'll get two results linking to w/index.php?title=Main_Page;
IIS 404.0 Error
unformatted page content
The error:
Module: IIS Web Core
Notification: MapRequestHandler
Handler: StaticFile
Error Code: 0x80070002
Requested URL: http://localhost:80/w/index.php?title=Main_Page
Physical Path: C:\inetpub\wwwroot\w\index.php
Logon Method: Anonymous
Logon User: Anonymous
Troubleshooting done:
No errors shown by PHP Manager.
Switched PHP versions (no effect).
Externally tested other PHP forms running inside HTML (works fine).
Checked permissions on all folders (fine).
Edited Feature Permissions under Handler Mappings to allow executable (no change).
Changed PHP_via_FastCGI's access restriction to execute (no change).
Checked to make sure PHP Handling Mapping was set to *.php (it is).
Checked Default Document settings and index.php. Externally tested index.html in w/ (works both by direct link to file and link to folder).
Externally tried tested /w/index.html with PHP "Hello World" inside it (blank page).
What am I doing wrong? Everything works perfectly fine run locally on the server.
As Christpher says, localhost is a wrong in an URL to be contacted from outside: if that's what you see, you forgot to set $wgServer correctly.
yesterday i've setted up an Ubuntu 14.04 with php5, Apache2, mysql / mysql-php
Now i try to access my pages - first i've owned all files in my var/ww-directiory, the mainpage of my page worked.
Iǘe logged in in the page (self written cms), nothing working now.Chrome tells me an Internal Server-Error (500). but they are no errors displayed.
I've tried to change the php.ini to display errors, but the changes will be ignored.
With service apache2 stop
i have stopped the server, but the server is running...
What i have to do to see my errors and top stop the server?
In xampp (windows xp / windows 7, booth) the page workes fine. The page is in use on a real server, there it works fine too.
My .htaccess seems to be ignored (routing engine).
If i fill my index.php with "Hello World" (and nothing other) it doesnt work too.
But it seems that php is loading my application correctly, it started the session (seen at the cookies) which is started in other file, which is included from index.php.
An Internal Server Error is probably due to some mistake in your configuration files. That could be either apache2.conf (or any other apache configuration files that get loaded) or php.ini (or any of the additional config files that php loads).
By the way, .htaccess files are disabled by default, and you need to explicitly enable them using apache directive AllowOverride.
Another thing to notice is that, in ubuntu 14.04, you're probably using apache 2.4. There's some slight differences. The first one I've noticed is that site definition files inside sites-available need to end in .conf now.
You can test you config for errors using apachectl configtest (on linux).