Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi folks!
Gawd! Its Monday and i was supposed to get my Apache Server up and running, along with PHP. Talk about grounding my arse over the weekend, and still being fruitless
I've tried the installation procedures on the Apache.org and Php.net sites with relation to installing/configuring Apache and PHP respectively. But to no avail.
Could someone please guide me step by step, installing Apache 2.0.40 and making PHP4.2.3 work on it.
Follow the instructions and specify what you want to install - you have loads of options probally the ones you will be intereste din are apache, php, mysql, and possibly ssl
I had major problems trying to get LAMPS installed now Im all done - in only 1 hour
Voila! I got Apache working finally. The error/warning mentioned in my previous post was due to memory probems/couldnt bind the specific IP address to apache. Oh well all i had to do was reboot my linux system, restart Apache and pronto it works!
Now onto phase2: Installing/Configuring PHP4
Btw thanks bladewalker, would certainly check out that site
Originally posted by bladewalker What does it display?
Does it output the text file?
Does it just say page cannot be displayed?
What machine are you trying to get the page from - local/remote?
This is the Test.php which i created:
<html>
<head
<title>PHP4 Test page</title>
</head>
<body>
<?php echo "Hello world"; ?>
<?php phpinfo() ?>
</body>
</html>
The PHP part of the file doesnt give any output, its just the header which gets displayed in the browser.
I would say just use the apachetoolbox it was really simple
The display is what I got - it turns out I had not installed the module - doh!
There seems to be a config error in your apache config - mine reads:
And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
I think it is because you havent got a space to seperate your arguments try using:
AddType application/x-httpd-php .php
instead of what you added:
AddType application/x-httpd-php.php
Originally posted by bladewalker
I think it is because you havent got a space to seperate your arguments try using:
AddType application/x-httpd-php .php
instead of what you added:
AddType application/x-httpd-php.php
True that! Silly moi!
Anyways I could have used the method you suggested to install both the Apache aswell as the PHP thingie, but my professor insists to compile the whole damn friggin' source code. Hence i've no other alternative but to stick with this for the time being.
I believe the installation of PHP4 is fine. I've created the above illustrated Test.php file for testing purposes. When I open my browser and type in 127.0.0.1/Test.php, a "Save File" window pops up.
The output Hello World isnt gettting displayed.
Anyways how do you go about testing whether PHP has been installed successfully or not?
Yep I had this problem too - it is because the php module is not installed or it cant be found - did you edit the http.conf file to add the PHP module as well?
I got round this by using the apachetoolbox and recompling apache with the option for mod_php installed it got round the problem - as far as what went wrong I don't know - sorry but I only just started this as well - I would presume PHP cant be found
It tries to save the file because it cant pass it to PHP - it sees it as an application (I think) and so prompts for download, if you try to get the file again you will find that the file contents are displayed in your browser!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.