[PHP-INST] What's a "Parse error"?
I'm getting that on the following line: I'm reasonably certain that the problem isn't there, but is somewhere in the configuration. php.ini is in /usr/local/lib, but ... is there something else that would cause this problem? Aloha mai Nai`a! -- "Please have your Internet License http://kapu.net/~mjwise/ and Usenet Registration handy..." -- PHP Install 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-INST] I'm really a principiant in PHP
I would like to know if it's necessary to have Microsoft personal web server installed on my computer to test my PHP pages before sending them to my server. Where I can find Microsoft Perosnal web server to download? Thank you! Marco from Italy -- PHP Install 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]
Re: [PHP-INST] What's a "Parse error"?
You do not need a space between ECHO and (). Try that. -Marc Clerc FissionWEB Networks http://www.fissionweb.net - Original Message - From: Michael J Wise <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 11, 2001 4:31 AM Subject: [PHP-INST] What's a "Parse error"? > > I'm getting that on the following line: > > > > I'm reasonably certain that the problem isn't there, but is somewhere > in the configuration. php.ini is in /usr/local/lib, but ... is there > something else that would cause this problem? > > Aloha mai Nai`a! > -- > "Please have your Internet License http://kapu.net/~mjwise/ > and Usenet Registration handy..." > > > -- > PHP Install 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 Install 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]
Re: [PHP-INST] CGI Error/ ISAPI doesn't work
>My guess is there is an outside file PHP is trying to get to, and it won't >work without this file. So, would there be anything PHP is looking for >outside the \PHP directory that is a critical file to have? Only php.ini and anything required by any of the extensions you might be loading - assuming that all roque php dlls have been removed from elsewhere. I once had a similar problem on a machine which had been configured by an ISP - I could not get php to run under the IUSR account. In the end I created a php_user account with all the appropriate permissions and privileges. That got things working. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP Install 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]
Re: [PHP-INST] CGI Error/ ISAPI doesn't work
I finally got it working with the ISAPI module, which I will probably live with for now. I'll reboot the server Monday to see if that helps (since I've never rebooted it after installing PHP). I'll try creating that PHPUSR account to place on the PHP directory to see what happens. PHP.INI has IUSR permissions on it within the \WINNT directory, and any other DLLs have been removed, with no change in outcome. Thanks, Marc Clerc - Original Message - From: Phil Driscoll <[EMAIL PROTECTED]> To: Marc Clerc <[EMAIL PROTECTED]>; Milis PHP <[EMAIL PROTECTED]> Sent: Sunday, March 11, 2001 9:17 AM Subject: Re: [PHP-INST] CGI Error/ ISAPI doesn't work > >My guess is there is an outside file PHP is trying to get to, and it won't > >work without this file. So, would there be anything PHP is looking for > >outside the \PHP directory that is a critical file to have? > > > Only php.ini and anything required by any of the extensions you might be > loading - assuming that all roque php dlls have been removed from elsewhere. > > I once had a similar problem on a machine which had been configured by an > ISP - I could not get php to run under the IUSR account. In the end I > created a php_user account with all the appropriate permissions and > privileges. That got things working. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > -- PHP Install 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]
Re: [PHP-INST] What's a "Parse error"?
What is the exact error message you're getting? You're right, the code you have shown below should work without errors. On Sat, 10 Mar 2001, Michael J Wise wrote: > > I'm getting that on the following line: > > > > I'm reasonably certain that the problem isn't there, but is somewhere > in the configuration. php.ini is in /usr/local/lib, but ... is there > something else that would cause this problem? > > Aloha mai Nai`a! > -- > "Please have your Internet License http://kapu.net/~mjwise/ > and Usenet Registration handy..." > > > -- > PHP Install 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] > > - tyler at zerodivide dot cx Good news. Ten weeks from Friday will be a pretty good day. -- PHP Install 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]
Re: [PHP-INST] What's a "Parse error"?
Marc Clerc wrote: > Try that. Same same. " Parse error: parse error in /.../mjwise/.../test.php on line 10 And from the system.log, " [Sun Mar 11 15:28:14 2001] [error] PHP Parse error: parse error in /.../mjwise/.../test.php on line 10 " /.../mjwise/.../test.php(10) : Parse error - parse error The whole file is: PHP 4 Test Hello, world. Aloha mai Nai`a! -- "Please have your Internet License http://kapu.net/~mjwise/ and Usenet Registration handy..." -- PHP Install 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]
Re: [PHP-INST] libphp4.so not found - need urgent help!
I finally solved the problem, thanks to the pros in www.nexial.nl The solution is simple, simple change the order of "-l" so that it goes before the "-lpng" when compiling the Apache (near the PHP part). Look for the "-l png . -lgd" and swap them. It does the trick! Yours, Felix ""Felix Lee"" <[EMAIL PROTECTED]> wrote in message 98cb58$54s$[EMAIL PROTECTED]">news:98cb58$54s$[EMAIL PROTECTED]... > Dear all, > > I have tried the following on a BSDi 4.1, with Apache 1.3.12, 1.3.14, > 1.4.19, GD 1.8.4, PHP 4.0.4pl1, Jpeg 6b, libpng 1.0.9, zlib 1.1.3 > > What I have done is that orginally the BSDi box is running with Apache > 1.3.14 + PHP-4.0.4pl1 and everything works fine. > > But then I tried to add the GD-184 to PHP-404pl1, so I (in that sequence) > > 1) downloaded the src and installed zlib-113 > 2) downloaded the src and installed libpng-109 > 3) downloaded the src and installed jpeg-6b > 4) downloaded the src and installed GD-184 > 5) recompiled the src of PHP-404pl1 and "make install"ed it with the > following: > > ./configure \ > --prefix=/usr/local/php4 \ > --with-apxs=/usr/local/apache/bin/apxs \ > --with-mysql=/usr/local/mysql \ > --with-imap \ > --with-zlib-dir=/usr/local \ > --with-png-dir=/usr/local \ > --with-jpg-dir=/usr/local \ > --with-gd=/usr/local \ > --enable-versioning \ > --enable-track-vars > > make;make install > > > 6) After that the Apache simply refuse to start because of the following > error message: > > - Error when I run /usr/local/apache/bin/apachectl start - > Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: > Cannot load /usr/local/apache/libexec/libphp4.so into server: File not found > ./apachectl start: httpd could not be started > - End of Error Message - > > After that I tried to re-compile some of the components again, and recompile > PHP-404pl1, still get the same error message. > > What I did is to tried to compile PHP-404pl1 as a static module. So I: > > 7) go to /usr/local/download/apache_1.3.14 (where is the src of apache) > 8) make clean > 9) ./configure --prefix=/usr/local/apache/ > 10) "make clean" the previous PHP build > 11) recompile the PHP-404pl1 > > ./configure \ > --prefix=/usr/local/php4 \ > --with-apache=/usr/local/download/apache_1.3.14 \ > --with-mysql=/usr/local/mysql \ > --with-imap \ > --with-zlib-dir=/usr/local \ > --with-png-dir=/usr/local \ > --with-jpg-dir=/usr/local \ > --with-gd=/usr/local \ > --enable-versioning \ > --enable-track-vars > > make;make install > > 12) go back to /usr/local/download/apache_1.3.14 > 13) configure again and compile > > ./configure \ > --prefix=/usr/local/apache \ > --activate-module=src/modules/php4/libphp4.a > > make > > 14) when it comes to the GD: > > gcc -I/usr/local/download/php-4.0.4pl1 -I/usr/local/download/php-4.0.4pl1/m > ain -I/usr/local/download/php-4.0.4pl1/main -I/usr/local/download/php-4.0.4p > l1/Zend -I/usr/local/download/php-4.0.4pl1/Zend -I/usr/local/download/php-4. > 0.4pl1/TSRM -I/usr/local/download/php-4.0.4pl1/TSRM -I/usr/local/download/ph > p-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -o > httpd buildmark.o modules.o modules/standard/libstandard.a > modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a > lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/m > ysql/lib/mysql -rdynamic -L/usr/local/lib -L/usr/local/mysql/lib/mysql -Lmo > ules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lc-client -ld > l -lmysqlclient -lpng -lz -lgd -lm -ldl > /usr/local/lib/libgd.a(gd_png.o): In function `gdPngErrorHandler': > gd_png.o(.text+0x25): undefined reference to `png_get_error_ptr' > /usr/local/lib/libgd.a(gd_png.o): In function `gdPngReadData': > gd_png.o(.text+0x67): undefined reference to `png_get_io_ptr' > /usr/local/lib/libgd.a(gd_png.o): In function `gdPngWriteData': > gd_png.o(.text+0x8b): undefined reference to `png_get_io_ptr' > /usr/local/lib/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx': > gd_png.o(.text+0x103): undefined reference to `png_check_sig' > gd_png.o(.text+0x129): undefined reference to `png_create_read_struct' > gd_png.o(.text+0x154): undefined reference to `png_create_info_struct' > gd_png.o(.text+0x1a6): undefined reference to `png_set_sig_bytes' > gd_png.o(.text+0x1b7): undefined reference to `png_set_read_fn' > gd_png.o(.text+0x1c2): undefined reference to `png_read_info' > gd_png.o(.text+0x1e5): undefined reference to `png_get_IHDR' > gd_png.o(.text+0x1f6): undefined reference to `png_set_strip_16' > gd_png.o(.text+0x20a): undefined reference to `png_set_packing' > gd_png.o(.text+0x22a): undefined reference to `png_set_strip_alpha' > gd_png.o(.text+0x254): undefined reference to `png_get_PLTE' > gd_png.o(.text+0x261): undefined reference to `png_get_valid' > gd_png.o(.text+0x297): undefined reference to `png_get_tRNS' > gd_png.o(.text+0x3c0): undefined referen
Re: [PHP-INST] compile error with libphp4.a on RH 6.2
Thanks for your help. The make works now. The problem I had was the install instructions in the book ""MySQL/PHP Database Applications". The first ./configure for apache says --prefix=/path/to/apache , with the instruction "the path where you would like Apache installed. The second ./configure also specifies /path/to/apache. But it should have said for the first ./configure /path/to/apache/sourcefiles and for the second ./configure /path/to/apache. Anyway, it all worked out fine in the end. regards Jani Taskinen wrote: > On Fri, 9 Mar 2001, Johannes Ambrose wrote: > > >Hi, > >I hope this is not a stupid question. The faq tells me it should just > >work. > > > >When compiling apache on Red Hat 6.2 with : > >./configure --prefix=/usr/local/apache > >--activate-module=src/modules/php4/libphp4.a > > > >everything works fine. However, make gives me a build error because > >there is no such directory as src/modules/php4. In other words. the > >libphp4.a file does not get created. I've looked at the FAQ and mail > >lists but nothing obvious jumps out at me. > > Please read the INSTALL file that comes with the PHP 4 distribution: > > ---8<-- > QUICK INSTALL (Static) > > $ cd apache_1.3.x > $ ./configure > $ cd .. > > $ cd php-4.0.x > $ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars > $ make > $ make install > > $ cd ../apache_1.3.x > $ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a > (The above line is correct! Yes, we know libphp4.a does not exist at this > stage. It isn't supposed to. It will be created.) > > $ make > (you should now have an httpd binary which you can copy to your Apache bin > dir if is is your first install then you need to "make install" as well) > $ cd ../php-4.0.x > $ cp php.ini-dist /usr/local/lib/php.ini > You can edit /usr/local/lib/php.ini file to set PHP options. > Edit your httpd.conf or srm.conf file and add: > AddType application/x-httpd-php .php > ---8<-- > > --Jani > > -- > PHP Install 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 Install 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-INST] Getting Started...
Maybe I should have put "NEWBIE ALERT" as part of the subject :) All the same. I thought that the build had already been done in steps 9 and 10 (see manual exerpt). And then, right after that is the line about "building" the CGI executable (section following the steps). Has that not been done already? Perhaps I have done something wrong with the compile or the post-compile Apache configuration. I am probably going to do the compile again. I want to use Apache and MySQL with PHP. Any tips? Before I attempt to compile, where should I locate the Apache, MySQL and PHP source directories (/usr/local?) in terms of best practices? After the build, can I remove the source directories from that machine? When I try to open a sample .php, the browser asks me where I would like to download it. I have obviously missed something. I tried to fix this by adding "AddModule mod_php3.c" to the end of the list of modules in httpd.conf and get an error stating "Cannot add module via name 'mod_php4.c':not in list of loaded modules" on httpd startup. I looked at the other loaded modules and they all end in .so. There is no mod_php4.so on my system. I guess the idiot-proof install wasn't written for SuperIdiot. Anyway, any direction regarding how to troubleshoot this is vigorously encouraged. Regards, Rob x---From the Manualx Apache Module Quick Reference PHP can be compiled in a number of different ways, but one of the most popular is as an Apache module. The following is a quick installation overview. Example 2-1. Quick Installation Instructions for PHP 4 (Apache Module Version) 1. gunzip apache_1.3.x.tar.gz 2. tar xvf apache_1.3.x.tar 3. gunzip php-x.x.x.tar.gz 4. tar xvf php-x.x.x.tar 5. cd apache_1.3.x 6. ./configure --prefix=/www 7. cd ../php-x.x.x 8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars 9. make 10. make install 11. cd ../apache_1.3.x 12. ./configure --activate-module=src/modules/php4/libphp4.a 13. make 14. make install 15. cd ../php-x.x.x 16. cp php.ini-dist /usr/local/lib/php.ini 17. Edit your httpd.conf or srm.conf file and add: AddType application/x-httpd-php .php 18. Use your normal procedure for restarting the Apache server. (You must stop and restart the server, not just cause the server to reload by use a HUP or USR1 signal.) Building When PHP is configured, you are ready to build the CGI executable. The command make should take care of this. If it fails and you can't figure out why, see the Problems section. x---End of Manual excerptx > -Original Message- > From: Josh Lokot [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 07, 2001 11:57 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-INST] FW: I'm not sure where to begin... > > > Type make from in your php-4.0.4pl1 directory. then it > should compile. > then you can type "make install" and it should install. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 8 March 2001 10:33 AM > To: [EMAIL PROTECTED] > Subject: [PHP-INST] FW: I'm not sure where to begin... > > > Hello all, > > I'm using RHL 6.0 with Apache 1.3.6 and downloaded and > attempted an install of PHP-4.0.4pl1 today. > > As you can probably guess, I was unsuccessful in my first try > to get things working here, but I remain hopeful. > > I followed the instructions given on pp. 51-52 of the > http://snaps.php.net/~jah/pdf/manual-en.pdf document. Well, > mostly. I > don't know what is meant by "When PHP is configured, you are > ready to build > the CGI executable. The command make should take care of > this. If it > fails, and you can't figure out why, see the problems section." > > What directory should I be in when I run make? I thought I > had already > built everything in the previous 18 step procedure. > > While I'm at it, since another compile/build seems > inevitable, I might as > well ask for configuration suggestions as well. > > The install is on a development server, I just need it to > work for now. > > Regards, > Rob > > > -- > PHP Install 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 Install 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-INST] Why libmysqlclient.so.6 is required?
Hi, all. Let me know if this problem has been already solved. I am installing PHP 4.0.4 patched 1 (4.0.4p1) on Solaris 8 (x86) and having trouble with MySQL library. Currently there is MySQL 3.23.33 already running, and it has libmysqlclient.so.10 in /usr/lib which is a symbolic link to /usr/local/lib/mysql/libmysqlclient.so.10.0.0. But PHP complains that I have no libmysqlclient.so.6 anywhere. Why is this? I think libmysqlclient.so or its original (so.10.0.0) will do. Compiling option for PHP is: ./configure --with-apxs=/usr/apache/bin/apxs \ --with-mysql=/usr/local --enable-track-vars I found some articles on libmysqlclient.so.6 already posted, but the senders already had one in somewhere. I have nowhere! Regards, --- Norihisa Washitake [EMAIL PROTECTED] -- PHP Install 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]