THE CODE WORD…..PHPXml ||a documentery by koyel banerjee

July 6, 2009

ENLIGHTENMENT OF AN IGNORANT

Filed under: Uncategorized — kopecks89 @ 3:51 pm
Tags: , , , , ,

well another step ahead.this time the php scripts are actually running.althought i had been very parasitic to zerocool(arun sag) for this still the effort and patience is worth the reward.afterinstalling apache,mysql and php i guessed i was ready to work with it.I was following a php manual by Matt Zandstra and it instructed to do certain modifications in the httpd.conf file to make apache server execute files with .php extensions.i though that is so easy!but i was so so wrong. It actually took me a good 2 days to achieve success with it.Still nevertheless to mention hadn’t zerocool been there to guide me god knows how much longer it would have taken.heres an account of the grim proceedings of the two days mentionably the 3rd,4th and finally 5th of july!

we came along together because i guess no_mind would be mentoring us both and we had this plan to team up for the task.so we just relied on the mail google chat as a source to exchange instructions and commencements.i told him how i had tried to configure and yet the script did not give any output except a blank mozilla page!he let me certain instructions on about what to configure and where….i did the respective configurations namely to add

addtype application/x-httpd-php.php

after the line addtype application/x-gzip.gz.tgz

this was supposed to execute the files with .php executions via the zend engine so that the php scripts would get parsed!but alas the moment i tried to save the configured file i was denied access.the message said something alike that it was READ-ONLY for me.so?i needed to become the root to change it.so again armoured with his set of instructions and help from a

fedora website i changed or rather modified certain parts of the /pam.d/gdm file and now i was supposed to be able to resume my functions as the root .so i logged in as other and signed myself as the root with my root password.the taskbar flashed…WELCOME ROOT.mission accomplished.now i made the changes but again no avail.at this point of time i felt rather frustrated i felt this issue would never be resolved.but zerocool just laughed and said”we could solve the problem together”.i felt the urge to give a try again.this time maybe the main cause was detected.he happened to ask me where was the file i intend to run on apache i said in my disk.he said there lies the problem!”you have got to move it to /var/www/html/ to make it work.ANOTHER OF MY UTTER SILLY THOUGHTS.i confessed that i had no inkling that it had to be that way the manual mentioned nothing suchlike!how was i ever to know? i just thought it would be like an html file with only php scripts imbibed and i can save the file anywhere around the world and make it work when clicked on!like html does.i was ashamed but he was callous or overlooked taking pity on me , whichone i can’t say.nevertheless he never pressed the issue.so the command was written after i logged in as root in the gui

su –

this logged me as the root

next:

cp[space]/media/disk/12.php[space]/var/www/html/

TARGET                               DESTINATION

the output read you have a mail in /var/spool/mail/root

i reported.he said”i guessed we just copied that :p”

next was another setp to restart httpd to make the darn thing work.he explained even if logout the service keeps going.it runs on daemon.real demonish i can say that!so again i typed the commands:

service httpd restrart

httpd started [ok]

huh.mission accomplished.i said”hurrah it worked”.next with loads of prayers on lips i clicked on : httpd://localhost/12.php

and my script ran :p

the program was :

<html>

<body>

<?php

phpinfo();

?>

</body>

</html>

the simplest of all php commands i daresay but i took so much to make it work.SO I DARESAY THIS DEFINITELY HAVE BEEN THE ENLIGHTENMENT OF AN IGNORANT.once again mbuf the briyiani part bestows itself.

Create a free website or blog at WordPress.com.