Re: [PHP] Setting Up PHP
You'll need to modify your httpd.conf. Depending on you OS/Apache version it will be different. For Windows/Apache1.3.x: http://us2.php.net/manual/en/install.windows.apache1.php For Windows/Apache2.x: http://us2.php.net/manual/en/install.windows.apache2.php For Linux/Apache1.3.x: http://us2.php.net/manual/en/install.unix.php#install.unix.apache For Linux/Apache2.x: http://us2.php.net/manual/en/install.unix.apache2.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting Up PHP
George McGuey wrote: I am using SAMS Teach Yourself on PHP,MYSQL and Apache. Everything has gone well except for the final step to test the PHP by creating in Apache htdocs file called phpinfo.php. When I do this and then go to the http://localhost/phpinfo.php to view the information page all I get is the original lines of that are in the text file which is ?php phpinfo() ; ? Need help and I am an absolute novice in terms of knowledge. Thanks Did you configure Apache to parse php files? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Setting Up PHP
I am using SAMS Teach Yourself on PHP,MYSQL and Apache. Everything has gone well except for the final step to test the PHP by creating in Apache htdocs file called phpinfo.php. When I do this and then go to the http://localhost/phpinfo.php to view the information page all I get is the original lines of that are in the text file which is ?php phpinfo() ; ? Need help and I am an absolute novice in terms of knowledge. Thanks G. McGuey
[PHP] Setting Up PHP
I'm trying to setup PHP support on an small 2 station Intranet for development purposes. I'm using PWS under Win98 SE. I believe I'm experiencing a common problem, but I seem to be unable to work my way around it. At the suggestion of several installation tutorials, after installing it, I have made a simple PHP file including the following statement: ?php phpinfo();? I'm supposed to be able to test the functioning of PHP with that simple command to confirm it's working. Yet, all I get is a security alert: Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. For more information as to why this behavior exists, see the manual page for CGI security. For more information about changing this behavior or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page. I have tried for the life of me to disable the CGI.Force_Redirect or what ever it is in the PHP.INI file but all that does is to make IE come back with file not found. What do I have to do to disable the security from getting in the way of displaying PHP pages? Sincerely, Dalton Seymour
RE: [PHP] Setting up PHP and ODBC on Linux
Mweb, The iODBC site is back up; I recommend downloading the iODBC SDK and using that. I apologize for the inconvenience; we had a power station fire in the neighborhood! Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology Providers -Original Message- From: mweb [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 6:09 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] Setting up PHP and ODBC on Linux Hello, as you may remember, some day ago, I asked how to develop on linux PHP pages accessing Mysql via ODBC (The reasons why I *have* to cope with this exact sub optimal set up are in the original message, no reason to repeat them here). I have installed all the UnixODBC rpms I could find ( I have RH 7.1); the iodbc packages on the openlinksw were not accessible. Now I have the following packages installed: [root@ari mweb] rpm -qa|egrep -i 'php|odbc|sql' php-4.0.4pl1-9 php-manual-4.0.4pl1-9 mysql-server-3.23.36-1 MyODBC-2.50.39-1 unixODBC-devel-2.0.7-1 asp2php-0.75.11-1 mysql-3.23.36-1 mysql-devel-3.23.36-1 php-mysql-4.0.4pl1-9 unixODBC-2.0.7-1 unixODBC-generic-2.0.7-1 mysqlclient9-3.23.22-4 unixODBC-mysql-2.0.7-1 However, I currently have PHP set up as pasted below (from phpinfo): that means I have to recompile it from scratch, doesn't it? If so, with which options? Is it enough to change --without-mysql to --with-mysql and add --with-odbc? Also, is it safer/worst/irrelevant/mandatory to erase the php rpm package before building it again from source? TIA, mweb './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' -- If you have the right attitude, interesting problems will find you Eric S. Raymond, The Cathedral and the bazaar, chapter 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Setting up PHP and ODBC on Linux
Hello, as you may remember, some day ago, I asked how to develop on linux PHP pages accessing Mysql via ODBC (The reasons why I *have* to cope with this exact sub optimal set up are in the original message, no reason to repeat them here). I have installed all the UnixODBC rpms I could find ( I have RH 7.1); the iodbc packages on the openlinksw were not accessible. Now I have the following packages installed: [root@ari mweb] rpm -qa|egrep -i 'php|odbc|sql' php-4.0.4pl1-9 php-manual-4.0.4pl1-9 mysql-server-3.23.36-1 MyODBC-2.50.39-1 unixODBC-devel-2.0.7-1 asp2php-0.75.11-1 mysql-3.23.36-1 mysql-devel-3.23.36-1 php-mysql-4.0.4pl1-9 unixODBC-2.0.7-1 unixODBC-generic-2.0.7-1 mysqlclient9-3.23.22-4 unixODBC-mysql-2.0.7-1 However, I currently have PHP set up as pasted below (from phpinfo): that means I have to recompile it from scratch, doesn't it? If so, with which options? Is it enough to change --without-mysql to --with-mysql and add --with-odbc? Also, is it safer/worst/irrelevant/mandatory to erase the php rpm package before building it again from source? TIA, mweb './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' -- If you have the right attitude, interesting problems will find you Eric S. Raymond, The Cathedral and the bazaar, chapter 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]