Question:
How do I run php files from web browser?
2011-03-19 12:49:59 UTC
I have been taking a crash course for ftp servers so I can install and use Wordpress. After about a month of searching, installing trial software and testing the software I have become stuck trying to run the install.php for Wordpress. I have my server up, created users/databases/privileges etc. After much learning/testing I determined what to use for the most part. Since my trial software was about to expire & I was not sure which to purchase yet . . I reinstalled my entire operating system (new laptop anyways) to start all over. Here is where I am at, perhaps I am still missed something. I also turned on some windows features but I am not certain I have what everything I need for all this, A list of necessary Windows features would be nice

Windows Vista Home

WAMPServer 2.1
Apache 2.2.17
MySQL 5.5.8
PHP 5.3.5
PHPmyadmin 3.3.9
SQL Buddy 1.3.2
XDebug 2.1.0 5.3
ISS 7.0

Serv-U with the Navagator
CuteFTP
Notepad++

For some reason I just don't seem to understand how to run the install.php. It says to run the file from a web browser. Perhaps to those who have set up a server before, this is easy to do. I can access my server with Serv-U or WAMP as well as CuteFTP. I can upload files to my server in the folders I created on my hard drive with privileges to those folders. I still don't understand how the files are associated with the Wordpress database I created or if the Wordpress install.php creates a database during the install process.

Am I still missing something ? Or do I just not understand how this works

I appreciate any advice or comments, so difficult to search through the garbage found in search engines until you stumble across little bits of info that helps. Just trying to get Wordpress working on a Windows Vista laptop. I think I am very close, just need to run install.php

Thanks much . . have a great day
Robin
Six answers:
?
2011-03-19 13:09:39 UTC
I assume you have your web server already running properly.



To run a quick check, visit this URL in a web browser: http://127.0.0.1/

For now just use internet explorer until you make sure everything is working properly. If your server is running and nothing is interfering (firewall or etc) then you should see some kind of page, ei the default index page by Apache, or an error code returned by the server, or a file directory.





To make sure PHP is installed by the server, create a new document in the htdocs folder in the server directory. For now you could call it test.php Edit the page so it contains:


phpinfo();

?>



Save the document and load it in your web browser (http://127.0.0.1/test.php). It has to go through the web server in order for the page to processed, to be viewable by a browser. If you see a page that looks similar to this: http://wiki.gandi.net/_media/en/hosting/using-linux/tutorials/phpinfo.jpg?w=&h=&cache=cache you’re golden.





Once you’ve made sure everything works, copy the program you’re trying to install into the htdocs folder. Open a browser window and open the URL http://127.0.0.1/install.php if you have it in a folder, say forums, you’d run http://127.0.0.1/forums/install.php .



Follow the on-screen instructions from here. Hope this helps :)
2015-08-18 20:55:46 UTC
This Site Might Help You.



RE:

How do I run php files from web browser?

I have been taking a crash course for ftp servers so I can install and use Wordpress. After about a month of searching, installing trial software and testing the software I have become stuck trying to run the install.php for Wordpress. I have my server up, created users/databases/privileges etc....
2011-03-19 13:03:29 UTC
Sorry nut you obviously have no clue here. Why on earth sql buddy when you have phpmyadmin? and xdebug is a total waste of time. All you need is the WAMP server. Once you have installed the files onto the web server, in this case your machine, all you need to do is to browse to the site (obviously only localhost will work for this) using the localhost/install.php file location. Provided your httpd.conf, php.ini and my.conf or whichever mysql initialising file you use correct it should run the install. The install.php should create everything unless you have errors in your files.
Lloyd Christmas
2011-03-19 12:59:11 UTC
You need to browse to the install.php in your web browser. If the install.php is hosted on your computer and your WAMP is up and running, you could browse to it through a URL like this: 127.0.0.1/files/install.php (note that is just an example as I don't know the actual directory in which your install.php is located).
SomeGuy
2011-03-19 12:53:29 UTC
download and use XAMPP it's free to use so you won't have a free trial.

Now you have to put the file in the htdocs folder and run it through the localhost, You cannot simply just click on it to run it just like html files. It doesn't work like that



it would have to be like this

http://localhost/install.php



Hope This Helped :D
?
2011-03-19 12:54:02 UTC
You really want to pay for hosting, it's around $3 a month on sites like Bluehost.

Trust me, it's much cheaper than hosting your own and much more reliable.



Also, a good free FTP program is FileZilla, I use it too.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...