Re: [PHP] Re: Need some Linux/Apache help
* Todd Cary ([EMAIL PROTECTED]) [Jan 01. 2002 15:04]: [...] > My question is about where I should put my databases? I notice that the > "/var" is often used, but is "/usr". So, for a guy coming from the NT > world, what would you suggest? > 1) /var/databases/app1; /var/databases/app2 - or - > /var/databases/interbases/app1 > 2) The same as above, but with "/usr" I would go with /var because that's usually where you want to put stuff that changes often. There are all kinds of arguments for different locations, however. You may want to google for "linux directory structure" or something similar. FYI, I keep my databases in /var/{type} where "{type}" is the type of database server. For example, postgres in /var/pgsql; mysql in /var/mysql; etc.. -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 The beatings will continue until morale improves. -- 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]
Re: [PHP] Re: Need some Linux/Apache help
Brian et al - What a way to start the new year!! I now have PHP 4.1.1 *with* Interbase running on Linux 7.2 *with* Samba. And I am greatly indebted to the generous help of many people on this List. This means I can move my family picture album (uses Interbase) off of the IIS system and onto Linux. Before I do that, I have some questions about directory use in Unix/Linux which really do not belong on this list. So, maybe my basic questions can be answered by direct email - whatever is best for the List. My question is about where I should put my databases? I notice that the "/var" is often used, but is "/usr". So, for a guy coming from the NT world, what would you suggest? 1) /var/databases/app1; /var/databases/app2 - or - /var/databases/interbases/app1 2) The same as above, but with "/usr" Also, Brian, I have several questions about "compiling" in the "C" world which, if you do not mind, I'll send directly. Probably not that much different from Object Pascal (Delphi 5/6). Again, Happy New Year to you all, *and* many thanks for the help.. Todd -- Todd Cary Ariste Software [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]
Re: [PHP] Re: Need some Linux/Apache help
* Todd Cary ([EMAIL PROTECTED]) [Jan 01. 2002 10:39]: > When I run the "make" after a successful "configure", I get the > following errors: > stub.lo: file not recognized: File truncated > collect2: ld returned 1 exit status > make[1]: *** [libphp4.la] Error 1 > make: *** [all-recursive] Error 1 > Any suggestions on how I may resolve this? That seems to be a known problem with some older PHP versions when you're building --with-apxs but not static. Remove the PHP source you have.. Then try grabbing either 4.1.1 from php.net (the tar.gz) or a new snapshot from snaps.php.net. tar -xzf [file] to unpack it, then try your same configure line, then make and see if you get the same problem. -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 I'm not panicking. I'm examining all options at high speed. -- 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]
Re: [PHP] Re: Need some Linux/Apache help
Todd -- Send email to [EMAIL PROTECTED] In body of email: subscribe linux-admin You might also check for distrbution specific forum/list Slackware has one, I'm sure Redhat has some. By the why, were you compile Apache/Mysql and PHP from *tgz sources ? > David - > > <<< > Try Cross posting to: linux-admin list > > How do I join the list? > > Todd > > -- > Todd Cary > Ariste Software > [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 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]
Re: [PHP] Re: Need some Linux/Apache help
David - <<< Try Cross posting to: linux-admin list >>> How do I join the list? Todd -- Todd Cary Ariste Software [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]
Re: [PHP] Re: Need some Linux/Apache help
Try Cross posting to: linux-admin list [EMAIL PROTECTED] > When I run the "make" after a successful "configure", I get the > following errors: > > stub.lo: file not recognized: File truncated > collect2: ld returned 1 exit status > make[1]: *** [libphp4.la] Error 1 > make: *** [all-recursive] Error 1 > > Any suggestions on how I may resolve this? > > Todd > > -- > Todd Cary > Ariste Software > [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 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]
Re: [PHP] Re: Need some Linux/Apache help
When I run the "make" after a successful "configure", I get the following errors: stub.lo: file not recognized: File truncated collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make: *** [all-recursive] Error 1 Any suggestions on how I may resolve this? Todd -- Todd Cary Ariste Software [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]
Re: [PHP] Re: Need some Linux/Apache help
* Brian Clark ([EMAIL PROTECTED]) [Dec 31. 2001 19:09]: > make 2>&1 /home/todd/makeerr.txt Gah! I need to just go watch TV or something. I meant: make 2>&1 > /home/todd/makeerr.txt That directs STDERR to STDOUT and that's redirected to /home/todd/makeerr.txt Sorry for the list bomb. -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 Cole's Law: Thinly sliced cabbage. -- 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]
Re: [PHP] Re: Need some Linux/Apache help
* Brian Clark ([EMAIL PROTECTED]) [Dec 31. 2001 19:05]: > > How do I redirect the output *if* the output is errors? For example > > # make > /home/todd/makeerr.txt > Try this: > make 2> /home/todd/makeerr.txt Oh, and if you want it *all* to go to that file: make 2>&1 /home/todd/makeerr.txt You can also use grep or egrep to search for specific things if you want. -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 Life is like a diaper -- short and loaded. -- 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]
Re: [PHP] Re: Need some Linux/Apache help
* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 18:59]: > How do I redirect the output *if* the output is errors? For example > # make > /home/todd/makeerr.txt Try this: make 2> /home/todd/makeerr.txt > I am getting an error when I run "make" after configuring with > "--with-apxs". The configure runs fine; it is just the make and I have > noticed that with the above redirect, everything goes to the file > *except* the errors. -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng -- 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]
Re: [PHP] Re: Need some Linux/Apache help
Brian et al - How do I redirect the output *if* the output is errors? For example # make > /home/todd/makeerr.txt I am getting an error when I run "make" after configuring with "--with-apxs". The configure runs fine; it is just the make and I have noticed that with the above redirect, everything goes to the file *except* the errors. Todd -- Todd Cary Ariste Software [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]
Re: [PHP] Re: Need some Linux/Apache help
* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 13:15]: > Brian et al - Looks like you meant to send this to the list? :-)) I waited to see if one would roll on in, but it doesn't look like it will be, sooo... > This is starting to make some sense, however, there are still some areas > of confusion: > <<< > just use --with-apxs=/path/to/apxs/that/exists/on/your/system > >>> > What is the best way to determine where RH 7.2 put that? What am I > actually looking for? You are looking for an executable (a perl program actually) named apxs. At your shell prompt, try: which apxs If that returns nothing, try: locate apxs or locate apxs | grep bin > <<< > If you use --with-apxs when configuring PHP, you don't have to mess > around with your current Apache install. For the exception of making > sure httpd.conf is correct after you install PHP, you don't need to do > anything else to your existing apache install. > >>> > This makes sense now. Apache, and I am sure other application, use > modules, however, I am not sure of the mechanism at the application > level. In the Delphi/Windows environment, I can use packages at compile > time, but they do become part of the EXE file. Using --with-apache is the equivalent. But unless you've done this before and know exactly what configure arguments you need, you might want to use --with-apxs to build PHP as a loadable module so that you can easily re-configure PHP and build it all over again if you need to add support for something else (for example, if you decided a week from now you wanted MySQL support in PHP). Bottom line: If you use --with-apache you will have to build Apache *and* PHP and install them. If you use --with-apxs you only need to build PHP and install it. > <<< > Just download PHP tarball, unpack it somewhere. > ./configure --with-apxs=/path/to/your/apxs [rest of your options here] > make install > >>> > Again, I am not sure how to find the path. See the notes at the top. :) -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 Error:015 - Unable to exit Windows. Try the door. -- 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]
Re: [PHP] Re: Need some Linux/Apache help
* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 11:34]: [...] > I am told that apache-1.3.20-16 is loaded, however there are 4 or so > other applications dependent on it. If I were to do a "rpm -e > apache-1.3.20-16" with the "ignore dependencies" directive, what will > happen? You probably don't need to do all this.. when you configure PHP, just use --with-apxs=/path/to/apxs/that/exists/on/your/system instead of --with-apache=/path/to/apache/source > Can I then get my Linux installation reconfigured so that > "/etc/rc.d/init.d/httpd start" will start Apache? I have the > "apache-1.3.20-16.src.rpm" and I do know how to intall it and untar the > resulting file, but from there on I am lost when it comes to setting up > the "configure". If you use --with-apxs when configuring PHP, you don't have to mess around with your current Apache install. For the exaception of making sure httpd.conf is correct after you install PHP, you don't need to do anything else to your existing apache install. Just download PHP tarball, unpack it somewhere. ./configure --with-apxs=/path/to/your/apxs [rest of your options here] make install Then check httpd.conf to make sure it has a LoadModule line for php and AddType lines for php. You should see them commented out in httpd.conf. You should only need to uncomment the LoadModule line for PHP4, not PHP3. Then restart apache: /path/to/apachectl restart -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 I intend to live forever - so far, so good. -- 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]
Re: [PHP] Re: Need some Linux/Apache help
Brian - That is correct: libphp4.so no longer exists (locate libphp4.so). I am not sure where the Apache source code exists with the default RH 7.2 intallation, or if it exists at all. When I do # rpm -qa | grep apache I am told that apache-1.3.20-16 is loaded, however there are 4 or so other applications dependent on it. If I were to do a "rpm -e apache-1.3.20-16" with the "ignore dependencies" directive, what will happen? Can I then get my Linux installation reconfigured so that "/etc/rc.d/init.d/httpd start" will start Apache? I have the "apache-1.3.20-16.src.rpm" and I do know how to intall it and untar the resulting file, but from there on I am lost when it comes to setting up the "configure". Sorry for such basic questions, but my Windows background is certainly a liability - not a help! Todd -- Todd Cary Ariste Software [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]
Re: [PHP] Re: Need some Linux/Apache help
* Edwin Boersma ([EMAIL PROTECTED]) [Dec 31. 2001 06:15]: > Has Apache been restarted ton use the new libphp4.so? And if so, does it use He will have no libphp4.so since he used --with-apache. In order to create a DSO, he'll need to use --with-apxs > the correct one (you might have another one on your system)? > If Apache starts without probs, check the httpd.conf for php mime types. > What does Apache respond if you load your test script? -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 Avoid strange women and temporary variables. -- 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] Re: Need some Linux/Apache help
Hi Todd, Has Apache been restarted ton use the new libphp4.so? And if so, does it use the correct one (you might have another one on your system)? If Apache starts without probs, check the httpd.conf for php mime types. What does Apache respond if you load your test script? Regards, Edwin Todd Cary wrote: > Coming from a Windows background, I am having difficulty understanding > rpm's, compiling, and making packages. My hope is that someone will > have the patience to take me through the steps, since the HowTo's are > out of date and do not address my current Red Hat 7.2 environment. > > With Red Hat 7.2 installed, Apache is installed along with PHP 4.0.6, > however, Interbase is not installed Here is what I have done so far: > > I did a "rpm -qa | grep php" and found the rpm that was > installed.(php-4.0.6-7). When I tried "rpm -e php-4.0.6-7", I received > a list of php modules that were dependent on it. So, I "erased" each of > those and finally did the "rpm -e php-4.0.6-7". Then I put > php-4.0.6-7.src.rpm into /tmp and did a "rpm -i php-4.0.6-7.rpm" which > put a tar'd file into /usr/src/redhat/SOURCES. > > I did "tar -xzvf /usr/src/redhat/SOURCES/php-4.0.6pl1.tar.gz" which > created a directory /tmp/php-4.0.6. I cd'd into that directory and did > a ./configure --with-interbase=/opt/interbase > --with-apache=/usr/include/apache > > After quite a period, I received a "Thank you for using PHP" message. I > followed this with a "make" and a "make install". > > Now Apache does not respond to a "testphp.php" script that contains > "phoinfo()" and it use to. > > What have I missed. > > Todd > > -- > Todd Cary > Ariste Software > [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]