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 ?.
Related
I used windows 10 as the operating system and I installed xampp it's been a long time and it chews well, until yesterday after an error in mysql.
So I looked for solutions on the internet and I finally solved the error by copying the files from C:\xampp\mysql\backup to C:\xampp\mysql\data.
then the service mysql is well marketed even as Apache.
PhpMyadmin chews well without a problem. phpmyadmin page shows, but my code, will not show.
The problem is: my old projects exist in htdocs only display "This page does not work" and "localhost" in the title head, and nothing loads from my project files.
Note: I used codeigniter as a framework.
Note: I can navigate to a new project but for existing projects beyond that it no longer works.
Thank you P.al
Use Directly like-
http://localhost/projects/form.html
Here your files should be inside C:\XAMPP\htdocs\Projects\yourfile.html
The error in your picture appear an php script error
Edit php.ini for display error and notice in browser
display_errors = on
save the php.ini restart apache and reload page.
So I am following TheNewBostons video guide:
https://www.youtube.com/watch?v=vQCIZOv1su0&list=PL6gx4Cwl9DGDdCg0Jli_WTZd5JIliDY62&index=3
(On how to manually install Apache, php and MySQL)
Getting to the 3rd video where I am about to make the "Tuna baby!" php file to test it out I get the error "404 Not Found". I don't have Notepad++ so I am just using Notepad and naming it .php at the end. If I only write localhost is says "It works!", so Apache is working.
Not Found
The requested URL /tuna.php was not found on this server.
The weird thing is that I had no problems while doing this on my main computer but now I am doing it on my laptop and seem to have the problem every time I try doing it. Had to uninstall everything with "Revo Uninstaller" to remove all the traces and so on so this should be a clean install.
Any idea why it is not working?
Installed Notepad++, saved the file properly as a php file and it worked.
I am trying to run a PHP script from my browser. I have XAMPP installed. Status shows that all the important stuff is activated, including PHP. I have a directory under htdocs called test in which I have a very simple index.php file with the following contents:
<?php phpinfo(); ?>
If I go to: localhost/test I get a satisfactory result will all sorts on information in a nice table. When I go to localhost/my_other_dir I see a list of two files, as follows:
52719c32376853836_20..> 2013-10-30 19:56 55M
installer.php 2013-10-30 19:55 527K
I expect that if I click on the installer.php file it will run the script and do some cool stuff that involves the other file in the directory. This was working a couple of hours ago and I'm not aware of anything that I changed, other than installing XCode Command Line Tools on my MacBook, which is running Mavericks.
When I click on installer.php, however, instead of running the script it just tries to download the file. What gives?
My server status shows the following:
XAMPP Status
This page offers you on one view all information about what's running and working and what's not.
Component Status Hint
--------------------------------------------------------------------
MySQL database ACTIVATED
PHP ACTIVATED
Perl ACTIVATED
Common Gateway Interface (CGI) ACTIVATED
Server Side Includes (SSI) ACTIVATED
PHP extension »OPcache« DEACTIVATED see FAQ
PHP extension »OCI8/Oracle« DEACTIVATED see FAQ
When I try to access the website I get this error:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request
even after removing the htaccess file completely the website is still not working. NOTE: on localhost it's working fine.
Edit after comments:
I think I wasn't clear enough here's my problem in details:
I have a website written with PHP5 no framework or cms or anything and it work fine.
Then I start the admin section so I used CodeIgniter and rewrite the site.
Now I almost done with the programming so I uploaded a test version to the server in a subfolder to test it but the 500 error mentioned above appeared, my first thoughts were that it's a htaccess file problem so I try other htaccess files and finally removed it from the server, but the problem still there.
Now the only difference between my local server and the remote server is that locally i'm running PHP 5.3.5 and remotely it's PHP 5.2.14.
That's all the information that I can think of now.
Thanx in advance.
You likey have a missing PHP/Apache module hence the 500 error.
1: Check your logs within the root and the dir your running script in, else the directory above root/logs.
2: Create a file called phpinfo.php, in it put:
<?php phpinfo(); ?>
and run it.
3: Then compare the list of installed extensions shown in the output with the list of installed modules you have locally.
If your using WAMP, you click the tray icon, goto PHP->extentions and you can see all that are installed. Same for Apache.
boff
additionally:
A good start would to to make sure CURL and MBSTRING is on, however I don't use CAKE PHP....
I got same problem and added this line on top
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
I've just installed LAMP on my Ubuntu 9.10 machine, and everything works fine except when I copy my PHP files from another computer.
The LAMP guides I've followed also made me create a phpinfo() test file, which works, but when I try to type in e.g. index.php absolutely nothing happens - just a blank page in FireFox. :(
The files are in the exact same directory.
I'm thinking it's probably something with permissions and so on, but since I'm new to both PHP and Ubuntu, I'm kind of lost. It's like I can't create a PHP file with my file browser, but only by using the terminal - like when I created the testing.php from the LAMP guide.
Whaddayaknow... I made an error, tried to:
echo "Hello" world
which, even though I'm a PHP noob, I clearly know is wrong.
I think I'll have to figure out how to enable some sort of error reporting, a blank page is clearly not good enough.
You mean you have a index.php (copied from another computer) and a test.php (edited by hand, with a call to phpinfo()) in the same apache directory, the second works from your browser and the first doesnt ?
That can be a permission issue, or some compilation error in your php.
About permissions, for files should be readable from the apache server (more precisely, form the user that runs the apache server). You can type chmod a+r index.php.
YOu can also check your apache error logs (location dependent on installation). In any case it's vital to know where the error logs are if your are developing a web site.