Jump to content

Installation help


Jack McKalling

Recommended Posts

Hello,I have an external harddrive on an USB port, and I have installed Apache 2.2.3 installed on it, as well as MySQL 5.0.24a and PHP 4.4.4. (between brackets, is that a fine combination?)I want to virtually turn this hard drive into a Apache server with PHP & MySQL support. The server works, I can open files via http://localhost/. I can't test the MySQL installation yet because I would use PHP for that. And PHP doesn't work! If I create a valid php file with only an echo statement and call the file, I get the popup asking to save the file. I have read the http://www.php.net documentation about this, read their FAQ and read their FAQts, went to their Knowledge Base, done everything. Nowhere I can get a working sollution to be able to let PHPprocess the PHP files on this host.Ofcource I have configured Apache to link to PHP or however you call it that should be done, and visa versa. But that is the problem, I don't know if I have done it correctly. I have checked all PHP directives, they seem to be fine, and the settings in the httpd.conf are fine too. Although I suppose they do. I think PHP extension doesn't get send to the CGI program for processing, but directly to the client (even a baby would know this is unwanted).How exactly should I deal with this? I found some sollutions, like adding ";C:\php" to Windows PATH, though in my case it must be ";Z:\PHP" because it is on the external harddrive, and like adding the php-cgi executable to be the program to be opened at the PHP extension of Windows. Nothing works. Anyone? :)-note: if you need any specifications or directives with their settings, I'll give them. but ask me which one, I can't give the whole .ini file.

Link to comment
Share on other sites

It sounds like it thinks .php is a file to be downloaded, like a zip file. Are you sure there is nothing wrong with your httpd.conf? Also, Iw ouldnt recommend making the path Z:\ or anything because windows is retarded and drives get label accordingly to the last labeled one, so if you had up to d:\ drive then if you put in your external hard drive in it will be E:\ so you will get an error :).

Link to comment
Share on other sites

I don't say it is not the httpd.conf, I say according to me, it seems okay. I don't know much about it.And I did label the drive "Z", so that would not cause any error, thats not it. It might still be that httpd.conf, I just don't know. Could you please specify what should be configured how, so I can check if it is done correctly? Ask me anything at all, I want to give more information but just don't know what. :)

Link to comment
Share on other sites

Thank you little Goat! This tutorial was very helpful. In fact, my virtual server is now running with implementation of PHP and MySQL, perfectly in working order! :)I don't know much about granting users in my mysql server yet, but that will come. I still use the root user, this server will not become a public one by a long shot so I don't need other users yet anyway :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...