On Saturday 25 August 2001 3:13 am, Tom Kostiainen wrote:
I still can't get PHP to be processed by apache. When the default page and rcapache says PHP is loaded/installed, is that someting the SuSE install has just written into the scripts or really something reported by apache?
I can't find the mod_php4.c anywhere, wich the
<IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule>
searches for. Where should it be located?
Also, I can't find any LoadModule lines concerning PHP anywhere. Shouldn't there be at least one? If, where and what?
Plase, someone check your settings so I could finally get apache to process my PHP files.
Did you create the phpinfo.php file? If so, where did you put it, how did you access it, and what happened?
M
Here's some steps posted recently for SuSE 7.0; make sure these have been followed:
On Saturday 18 August 2001 12:07 pm, Julien Guillaume wrote:
Hello,I'm a new user of suse linux. I never work on a Linux platform before. I need to install the latest version of PHP and MySQL on suse 7.0. Does anybody have a moment to help me ? Make a simple explaination please !!!
I assume that you have a running SuSE 7.0 system, the CDs and/or access to the SuSE ftp server. You will need to install the following packages:
apache mod_php mod_php-core phpdoc (online php reference) mysql mysql-client mysql-shared
I suggest that you download the latest RPMs from the SuSE ftp server (ftp.suse.com or a mirror, e.g. ftp.mirror.ac.uk/sites/ftp.suse.com/). Once you have downloaded these packages use either YaST1->Package Management->Install Packages or rpm -ivh /path/to/files/package_name.rpm from the console (analogous to MS-DOS Prompt window).
Once the packages are installed you will need to start apache and mysql from console:
/etc/rc.d/apache start /sbin/init.d/mysql start
N.B. These locations are not valid from 7.0 onwards since the Linux Standard Base (LSB) is now used. See /sbin/init.d.README if you use later versions of SuSE.
If you wish to run these as daemons you need to edit /etc/rc.config (always run SuSEconfig after making the changes).
Set START_MYSQL in /etc/rc.config to "yes" and then run rcmysql start (from root). This then states that the root password must be set as follows:
/usr/bin/mysqladmin -u root -p password 'password'. You are prompted for
Yes I did, and the browser asked me if I'd like to download the file! :/ Why doesn't it see it as a PHP file althought it should! Should there be a file called mod_php4.c which apache seems to check for? Must MySQL be installed?! Well I guess I must install it and try if that would help. Do you have a LoadModule line for PHP? And can you find the mod_php4.c? I need to get PHP to work :/ - tk ----- Original Message ----- From: Martin Webster <mwebster@ntlworld.com> To: Tom Kostiainen <tom.kostiainen@pp.inet.fi>; suse-linux <suse-linux-e@suse.com> Sent: Friday, August 24, 2001 11:58 AM Subject: Re: [SLE] PHP still won't work!!! the
current password, which is <NULL> initially.
This should do it for you. However, you may wish to customise Apache to better suit your needs. If .php files are not recognised you need to edit /etc/httpd.conf (now /etc/httpd/httpd.conf) and look for the line "DirectoryIndex index.html" and append index.php.
Please remember that all these changes need to be done as root. However, it's best to get into the habit of never logging in as root; login as a normal user and then use the "su root" command from the console.
Finally, to test your configuration, create a file called phpinfo.php and include the following:
<? phpinfo(); ?>
Save the file in /home/your_account_name/public_html. You can access this file by typing:
http://localhost/~your_account_name/phpinfo.php using konqueror etc. Or, from remote machine by substituting localhost with the machines IP address.
M