LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Php not working afert instaled red hat 9 (https://www.linuxquestions.org/questions/linux-software-2/php-not-working-afert-instaled-red-hat-9-a-68406/)

Bosiak 06-27-2003 02:48 AM

Php not working afert instaled red hat 9
 
Hi !!!

I have a small problem i installed redhat 9 with all rpm. Everything was ok, since i realized my php is not working correctly.
I have web page with internet shop installed on php. But when i try to put some for example brake disc in a bracket, the bracket is empty. No error is send but i cannot put things in bracket..

Could anyone help me solving this problem.


Bosiak

nakkaya 06-28-2003 05:41 PM

if basic echo or phpinfo commands work than php is working there must be something with your script

BulletTime 07-23-2003 11:13 PM

I've been trying
 
I have the same problem with Red Hat 9.0. I put echo phpinfo() in a script but i don't have the correct response. I don't know if apache recognized php by default or I need to add manually the module.

dkaplowitz 07-24-2003 06:29 PM

have you run the command (from a command prompt)

php -v
and
which php
?

If those commands don't work, then you don't have php installed on your OS. If they do and you php scripts don't work with Apache, then yes, i believe you will see an option for some php functionality in the "details" view of the "web server" option in the package selection portion of the Redhat setup. You can get to that via the GUI by going to "system settings | add/remove applications". Look for "web server", click "details" and add all the php stuff. Should work like a charm.

BulletTime 08-03-2003 04:41 PM

I execute the commands in the prompt and I have this answer:
[root@localhost root]# php -v
4.2.2
[root@localhost root]# which php
/usr/bin/php
[root@localhost root]# rpm -aq|grep php
php-ldap-4.2.2-17
php-mysql-4.2.2-17
php-4.2.2-17
asp2php-gtk-0.76.2-5
php-manual-4.2.2-17
asp2php-0.76.2-5
php-devel-4.2.2-17
php-pgsql-4.2.2-17
php-odbc-4.2.2-17
php-snmp-4.2.2-17
php-imap-4.2.2-17

I execute the command rpm too. I think I have all the packages necessaries for php, but, I can't view correctly my php pages.
What I need to do more?
Please help me.

Clemente 09-19-2003 05:53 AM

Hi all,

I bet, it is the PHP-Version...
Current PHP-versions don't register GET or POST variables as globals. You can only acces them via $HTTP_GET_VARS["varname"] or $HTTP_POST_VARS["varname"].

I don't know, what was the first version with this property, but 4.2.2 definitively is.

If you are addicted to scripts using "old"-style, you can give
register_globals = on in /etc/php.ini.
But this is advised nowhere else, perhaps it causes security faults or what...

Greets,
Clemens von Musil

skyhigh 10-07-2003 07:08 PM

PHP not working after RedHat 9 installed
 
Hi ya all people out there,

I'm also having the same problem. I can't get my apache server to recognize the .php extensions.
Some help from any of you guys in here will be greatly appreciated.

I have selected the server package for my installation of RedHat 9. I know that my Apache webserver, PHP and mysql. Already pre-installed when I installed the RH9.

I have also tried configure the httpd.conf in the /etc/httpd/conf/
Adding the lines in below. Still with no luck.

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php .php4 .phtml
AddType application/x-httpd-php-source .phps
I'll have already restarted the service everytime I edit some lines.

I notice by default install of RH9 my php.ini file is in /etc/ directory.
I'm assuming that's normal.
I'll also tried setting the register_globals = ON <--- So, with no luck. So I left it as default: register_global = OFF

At this point I'm running out of idea's what to do next. Can anyone please help me? :study:

This is what I have in my RH9:
# php -v
4.2.2

# which php
/usr/bin/php

# rpm -aq|grep php
php-ldap-4.2.2-17
php-imap-4.2.2-17
php-mysql-4.2.2-17
php-4.2.2-17


:study: :confused: :scratch: :cry: HEEEEELLPPP....!

simplico 10-07-2003 08:38 PM

check your error logs for apache and see if they give you any information about what is going wrong.


All times are GMT -5. The time now is 04:18 PM.