Jump to content
The Uniform Server Community

.PHP Files Refuse to Load


Recommended Posts

Posted

Hi, I love the idea of UniServer, and it seems like it should be easy to use and such.

 

I was hoping to use it for testing my php files before uploading them to my webserver, but it doesnt seem to work. After opening start.bat (turning the server on) everytime I try to open a .php file (using Internet Explorer) it does absolutely nothing. I can double click the .php file a hundred times and not a single Internet Explorer window will open.

 

More so, when I attempt to navagate to a local .php page from an html, instead of loading the php page as it should, it asks me if I want to save the .php to my computer or open it immediately (the typical response if you are downloading an exe, zip, ect).

 

UniServer seemingly works- I can navagate http://localhost.a- Including the .cgi pages it links to. In fact, it will even open the test.php page that is installed with UniServer (it will only open via link from a html page), however when I put another php page in that same exact folder, it refuses to open.

 

I hope someone can shed some light on the topic, and maybe this will also help:

http://xanthians.com/upload/05/i_hate_local_servers.jpg

 

In that picture you might notice the HTML uses a different icon than the PHP files, despite the fact that they both use the same program to open.

Posted

You cannot open php files by double-clicking them or by navigating to them through w:/www or uniformserverfolder/www. You must type in localhost/fileinwww.php. Otherwise, the server does not know that you want it to parse the php file. Try going to http://localhost/testingphp.php and tell me what that gives you.

  • 2 months later...
Posted
Just as elky said, you have to put the php files in W:/www and then navigate to it through http://localhost/blah.php

 

You do not just launch it anywhere.... you must be new to this :(

1077[/snapback]

 

just tried this and still no joy..

Please can you help me, Im a newbie to this.

It seems great softare if i cn get it to run..

Hope someone can help me

Paul

Posted

After starting Start.bat

 

Go to http://localhost and then enter the address. I believe you are using C:/blah/blah/ if thats the address on IE then it wont work. It needs to be http://localhost/

 

Example, in IE the address should say http://localhost/testingphp.php for the testingphp.php file i see there.

 

BTW: Are you the same person as the on who posted the topic? or is your own problem the same?

  • 2 months later...
Posted

I too am having problems..

 

I can go to http://localhost/a/ and get the Uniform Server 3.2a running then I go to Run MySQL Server. I can see W running in My Computer. I can even go to the W:\www\index.html and the W:\www\test.php but when I go to http://localhost/install.php I get an error message(You are not authorized to view this page). I even tried W:\www\install.php but that opens dreamweaver. I read where that doesnt work, but I tried it.

 

I created a db and made sure the config.php has the right $dbhost = 'localhost'; $dbname = 'MyDB'; $dbuname = 'Myname';

 

Any help is appreciated in what I am doing wrong....

 

Copper

Posted

Sir,

 

I believe that I did it right. When I created the db I gave it the name of "MyDB" with a user name "Myname" and a password of "Myname". Then I made sure the config.php has the right $dbhost = 'localhost'; $dbname = 'MyDB'; $dbuname = 'Myname'; I then made sure I gave full rights to the root and the DB.

 

So I guess you are saying to make everything "root" and that should fix my problem...

 

Also I did make the DB using phpMyadmin through the Uniform Server.

 

Thanks

 

Copper

Posted

Unless you created that user then you did it wrong. The default username/password is root/root, but you can create yours also....

 

You dont just give it a username/password, it has to be in the system and have access to that database... :D

 

If you did create that user, then try using root/root just to test and see... If it is still saying that, take a screenshot of the problem and upload it so we can know which error it is, either from the script or the server itself...

  • 3 weeks later...
Posted
I too am having problems..

 

I can go to http://localhost/a/ and get the Uniform Server 3.2a running then I go to Run MySQL Server. I can see W running in My Computer. I can even go to the W:\www\index.html and the W:\www\test.php but when I go to http://localhost/install.php I get an error message(You are not authorized to view this page). I even tried W:\www\install.php but that opens dreamweaver. I read where that doesnt work, but I tried it.

 

I created a db and made sure the config.php has the right $dbhost = 'localhost'; $dbname = 'MyDB'; $dbuname = 'Myname';

 

Any help is appreciated in what I am doing wrong....

 

Copper

2056[/snapback]

 

I have found that if you try to do administrative things from localhost/apanel it won't let you, but you can use 127.0.0.1/apanel and do administrative things. Kind of a pain but everything about uniserver works if you have a little know how and some patience, i originally got up and running in about 1 minute and have been going strong ever since, so thanks to the team for giving me a simple way to manage a WAMP.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...