Apache 2.0 & PHP problems
Moderator: General Moderators
Apache 2.0 & PHP problems
I have installed RedHat Linux 8.0, it installed Apache 2.0, it syas that the PHP package has been installed, it also is loading the php module when Apache starts, but I am unable to run any php files, I receive the Server Error when I do.
Can someone please help me figure this out.....
Thank you in advance
Leo Zayas
Can someone please help me figure this out.....
Thank you in advance
Leo Zayas
More problems
Thanks for the reponse John, I don't think it is because it is just ignoring the php tags, how do I know where it is looking for php.ini and others.... I am a newbie to php so I really appreciate your help and suggestions........
- Johnm
- Forum Contributor
- Posts: 344
- Joined: Mon May 13, 2002 12:05 pm
- Location: Michigan, USA
- Contact:
First of all, let's find out where it is. On your Linux box enter this at the command line:
John M
Code: Select all
locate php.ini- Johnm
- Forum Contributor
- Posts: 344
- Joined: Mon May 13, 2002 12:05 pm
- Location: Michigan, USA
- Contact:
now do this:
That is the default location on linux as far as I know. Then restart your web server and try it again.
If it works go ahead and remove the php.ini from the /etc/ directory.
If not, try copying it to the /usr/lib/ directory.
John M
Code: Select all
cp /etc/php.ini /usr/local/lib/php.iniIf it works go ahead and remove the php.ini from the /etc/ directory.
If not, try copying it to the /usr/lib/ directory.
Code: Select all
cp /etc/php.ini /usr/local/php.iniTry
Code: Select all
<?php echo "Hello World"; ?>- Johnm
- Forum Contributor
- Posts: 344
- Joined: Mon May 13, 2002 12:05 pm
- Location: Michigan, USA
- Contact:
Sorry I left ya like that, I had to go pick up my daughter. You can try just echoing out "Hello World" but if you are seeing the php tags the code is not being parsed. Can you show me the flags you set when you configured Apache?
I am looking for something like this:
John M
I am looking for something like this:
Code: Select all
./configure --prefix=/custom/apps/apache2 --enable-module=most --activate-module=src/modules/php4/libphp4.athat's okay John, no problem, I really appreciate you helping me.
Thank you too Kamuna, putting the php in the tag worked, however I heard you could also use ASP style tags <% %>, how is this done?
right now when I used the <?php echo "Hello World" ?> it worked just fine.
Is there like a conf file that I can change so it will accept <? by itself and <% ?
Thank you so much to both of you
Leo
Thank you too Kamuna, putting the php in the tag worked, however I heard you could also use ASP style tags <% %>, how is this done?
right now when I used the <?php echo "Hello World" ?> it worked just fine.
Is there like a conf file that I can change so it will accept <? by itself and <% ?
Thank you so much to both of you
Leo