When I run my website, the first page index.php loads successfully. I enter the username and password, and it login successfully, but then instead of running the second file (fcheck.php) it actually asks me to download it and save it.
I am not sure what I did wrong, as it used to run successfully beforehand... I did not do any changes to the php code. My changes were only with the services installed on the machine and the configuration.
First, I am new to the linux world. I am trying to build up a Fedora 12 server that has Apache, PHP, MySql, phpMyAdmin, Subversion, Samba, and Flash Media Development Server 3.5.
Using the internet, I was able to install and configure all of these items on a virtual machine using Sun's Virtual Box application.
I have an already built and working website. I copied it to this machine and tried running it. Before I install FMS 3.5, it used to run successfully. After I installed it, it started asking me to download the php file instead of running it. Of course, it might not have to do anything with FMS 3.5, but it might be me playing with the configurations trying to make FMS work with Apache.
1- My server runs php files. It already runs Index.php, and I tried making a dummy file with <?PHP phpinfo(); ?> and it ran successfully.
2- I disabled SELinux and Firewall. So I don't think they are part of the problem.
3- I tried running the (fcheck.php) directly from the webbrowser by calling: mydomain.jo/fcheck.php. It worked in terms that it did not ask me to download it, but of course it did not run successfully because it requires some session variables that are missing.
4- The problem should not be in the script that calls fcheck.php as this website is already running and functioning on another server. In addition, I did not make any changes to the code AND it used to work on my server at some point in the past.
Any hints and help is highly appreciated.