|
-
Hey guys, first post
Date: 10/27/05
(PHP Community) Keywords: php, browser, html, web, apache
I just wrote a script, in XHTML, from the book, saved it as predefined.php, and could not get it to show.
The other day, I installed Apache 2.0 and PHP 5 on my computer.
I set my Apache up at c:\Apache2 as recommended. I also set C:\php5 as recommended. I set up a folder at c:\webdocs, to save my files in.
I adjusted the httpd file in apache2/apache2/conf , and set Document root to c:/webdocs and Directory to c:/webdocs.
When I do a simple phpinfo.com script, it runs correctly.
However, I cannot seem to get my other scripts to work. I type them up, I save them in Notepad as All Files, .php extension. I type it directly into my webbrowser (as with phpinfo), ala http://localhost/predefined.php , but its still not working.
And Apache is constantly running. Its automatic.
Am I missing something here?
(running on XP)
Source: http://www.livejournal.com/community/php/359139.html
-
My Apache server needs washing?
Date: 10/31/05
(Computer Geeks) Keywords: php, apache
After an accidental system crash in which Apache was not shut down properly, I get this message when I try to start Apache: "Unclean shutdown of previous run." Reinstalling either phpdev or Apache 2.0.55 doesn't remove the error. How can I fix my server? *whimper* TIA
Cross-posted to apache.
Source: http://www.livejournal.com/community/computergeeks/808130.html
-
Apache won't start T_T
Date: 10/31/05
(Apache) Keywords: apache
What does this error mean: "Unclean shutdown of previous run"? How do I fix it?
It appears in a quickly-disappearing console when I try to start Apache.
The reason Apache shutdown 'uncleanly' was that I accidentally (and stupidly, I know) bumped the case thereby dislodging the heatsink, overheating the CPU and causing the system to shut down.
Please help. Very upset. TIA.
Cross-posted to computergeeks.
Source: http://www.livejournal.com/community/apache/26403.html
-
Running out of options
Date: 11/01/05
(WebDesign) Keywords: php, database, java, web, apache
Hey, I may not have said this, or I don't say it enough, but I wanted to thank everyone in this community for their continued support and efforts. I would be the first to admit that when I find myself with any questions or in need of an honest (most of the time) professional opinion, this is where I tend to stop first.
I work for a higher education provider who has recently put a new state wide internet campaign together. This meant that all regions throughout the state came together and had to adhere to a standard format for all web publications. To me, this was a great move, however, we are still very limited to the type of tools we can utilize for creating web documents. For example, right now we are needing to publish our college bookstore book list online. The bookstore is currently using a very large and extensive Access database to handle all bookstore events. Each semester, or when a new book is added/deleted/edited to the book list, we publish an excel version of this book list and push that to our website, as is. We are now finding that this method is difficult to track, manage and keep current. It's a waste of time, really.
Here's what they are asking me, if we are able to update the database and have it also update the web at the same time?
Well my answer was yes, then no, and here's why.
Our network group has restricted all scripting except for Javascript and CGI/Perl. I'm pretty sure we are running Apache on a Unix box, with nothing like PHP installed. I really don't think Javascript could be used for this, however, I don't know it enough to really make anything happen. The same goes for me when it comes to CGI/Perl.
I do, however, know that I could accomplish this utilizing the Access database and PHP. Somethings I do know. But since I don't have the tools available to me that I know best, what other options could I use? Any suggestions?
Source: http://www.livejournal.com/community/webdesign/1008804.html
-
Now I'm really screwed.
Date: 11/02/05
(Web Development) Keywords: php, mysql, software, html, technology, database, sql, security, apache
This is a follow up to the post I made before regarding this database connection problem I'm having. (http://www.livejournal.com/community/php/359304.html)
After receiving responses from people that suggested I install the MS SQL PHP functions, I inquired with my IT contact (we are a large institution and therefore have ridiculous amounts of red tape to deal with) as to whether or not they could be installed.
This is what I was told:
We do not support MSSQL odbc connection on our Sun Solaris server running Apache. mssql_connect would require a staff member who knows the technology, purchase of licensed software (which we do not have), and recompiling of Apache that may potentially break other users code. Also, there would be MSSQL security issues if we were to open up or authorize connections to it from our Sun Server, we host a variety of departmental databases on that SQL server, that could be a potentially serious problem if any of our other databases we to be compromised. Sorry for the inconvenience, but that is the story.
If I can't connect to that database, the entire project that I'm working on is going to be fucked and I have a 11/21 deadline. I need to know two things, if any of you can discern from all of this:
1. Is it EVER going to be possible for me to connect to that database? Or should I just stop wasting my time and create another for my personal use?
2. If it is possible, can someone tell me how? :(
Thanks everyone.
Cross posted to PHP/MySQL communities.
Source: http://www.livejournal.com/community/webdev/263959.html
-
How To Run Ant FTP / Telnet / Rexec Task
Date: 11/02/05
(Java Web) Keywords: software, java, apache
Ant (java software) from Apache Foundation is a popular build tool (often used successfully with other release management tasks) which replaces make.
"Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles. "
Included in Ant are optional tasks like FTP & Telnet. For example the FTP Task [...]
Source: http://blog.taragana.com/index.php/archive/how-to-run-ant-ftp-telnet-rexec-task/
-
Now I'm really screwed.
Date: 11/02/05
(PHP Community) Keywords: php, mysql, software, html, technology, database, sql, security, apache
Edit: Thank you all for your help and suggestions. I had a meeting with my server administrators and have found that it would just be easier to dump and import the data into my own little MySQL database. But I learned a lot in this process thanks to you all!
This is a follow up to the post I made before regarding this database connection problem I'm having. (http://www.livejournal.com/community/php/359304.html)
After receiving responses from people that suggested I install the MS SQL PHP functions, I inquired with my IT contact (we are a large institution and therefore have ridiculous amounts of red tape to deal with) as to whether or not they could be installed.
This is what I was told:
We do not support MSSQL odbc connection on our Sun Solaris server running Apache. mssql_connect would require a staff member who knows the technology, purchase of licensed software (which we do not have), and recompiling of Apache that may potentially break other users code. Also, there would be MSSQL security issues if we were to open up or authorize connections to it from our Sun Server, we host a variety of departmental databases on that SQL server, that could be a potentially serious problem if any of our other databases we to be compromised. Sorry for the inconvenience, but that is the story.
If I can't connect to that database, the entire project that I'm working on is going to be fucked and I have a 11/21 deadline. I need to know two things, if any of you can discern from all of this:
1. Is it EVER going to be possible for me to connect to that database? Or should I just stop wasting my time and create another for my personal use?
2. If it is possible, can someone tell me how? :(
Thanks everyone.
Cross posted to PHP/MySQL communities.
Source: http://www.livejournal.com/community/php/363248.html
-
The Backend of Tribal Fusion
Date: 11/09/05
(Java Web) Keywords: php, apache
I was in Drudge report when I saw an advertisement spot occupied by advertisement giant TribalFusion filled with Apache error message instead. The error message was rather interesting.
The requested URL /f.ad was not found on this server.
Apache/2.0.53 (Win32) PHP/5.0.3RC2 Server at a.tribalfusion.com Port 80
It uses Apache 2.x and PHP 5.0.x, so far so good. But [...]
Source: http://blog.taragana.com/index.php/archive/the-backend-of-tribal-fusion/
-
Apache Inches Over 70 Percent Mark
Date: 11/11/05
(Apache) Keywords: web, apache
November 7, 2005 -- (WEB HOST INDUSTRY REVIEW) -- The Apache Web server upped its market share yet again, crossing the 70 percent threshold last month, according to research firm Netcraft's (netcraft.com) November Web server survey.
http://www.thewhir.com/marketwatch/110705_Apache_Inches_Over_70_Percent_Mark.cfm
Source: http://www.livejournal.com/community/apache/26819.html
-
How To Find Your PHP.INI
Date: 11/17/05
(Java Web) Keywords: php, web, apache
I often come across this question: Where is my php.ini located? Here is a simple solution.
To find out which php.ini your apache server is using please follow the steps below:
1. Type in the following in a file named say test.php and save it in document root of your webserver, normally htdocs for apache:
<?php phpinfo(); ?>
2. [...]
Source: http://blog.taragana.com/index.php/archive/how-to-find-your-phpini/
-
apache 2 problems
Date: 11/26/05
(Apache) Keywords: apache
This has annoyed me for a while and need your help.
apache2 install on debian.
In /etc/apache2/sites-available I have two files which has this:
< = [ and > = ]
file1
NameVirtualHost 12.34.56.789 Options +ExecCGI
[VirtualHost www.adomain1.com] DocumentRoot /home/domains/adomain1.com/www ServerName www.adomain1.com ErrorLog /home/domains/adomain1.com/logs/www-error.log CustomLog /home/domains/adomain1.com/logs/www-access.log combined [/VirtualHost]
[VirtualHost adomain1.com] DocumentRoot /home/domains/adomain1.com/www ServerName adomain1.com ErrorLog /home/domains/adomain1.com/logs/www-error.log CustomLog /home/domains/adomain1.com/logs/www-access.log combined [/VirtualHost]
file2
[VirtualHost www.adomain2.com] DocumentRoot /home/domains/adomain2.com/www ServerName www.adomain2.com ErrorLog /home/domains/adomain2.com/logs/www-error.log CustomLog /home/domains/adomain2.com/logs/www-access.log combined [/VirtualHost]
[VirtualHost adomain2.com] DocumentRoot /home/domains/adomain2.com/www ServerName adomain2.com ErrorLog /home/domains/adomain2.com/logs/www-error.log CustomLog /home/domains/adomain2.com/logs/www-access.log combined [/VirtualHost]
When I start apache, I get this error message:
[Sat Nov 26 15:44:46 2005] [warn] VirtualHost www.domain1.com:0 overlaps with VirtualHost www.domain2.com:0, the first has precedence, perhaps you need a NameVirtualHost directive
I use one IP address to hold more than one domain.
When I remove the bits that doesn't have the 'www' entry, it works fine. But I don't want that as people who go to a site without the 'www' bit will be redirected to a different page.
Is there any easier way to do this - getting people to visit the same, via http://www.adomain1.com and http://adomain1.com to one page and http://www.adomain2.com and http://adomain2.com to another page?
Thanks.
Source: http://www.livejournal.com/community/apache/27109.html
-
reverse proxy
Date: 11/29/05
(Apache) Keywords: apache
Can anyone point me to a good tutorial on how to setup and use Apache2 as a reverse proxy? I need to run an Apache1 instance for some legacy stuff, but most of my sites are currently quite happy with Apache2. I'd like to know if (and how) I can run Apache1 on a different port of the same box but have that be completely transparent to any visitors, thanks to the reverse proxy. Ideally I could have Apache2 serve the binaries (images) for this legacy site, but if Apache1 has to do it all (for that site) that's fine. From the reading I've done it seems I'll need to use mod_rewrite to do this, but that scares me a bit, as it seems very complex.
Source: http://www.livejournal.com/community/apache/27219.html
-
R_PPC_REL24 relocation out of range
Date: 11/29/05
(PHP Development) Keywords: php, web, apache
Looking all over the web for this error and a solution or workaround, but so far no luck. That is, I've found some mention of others with the problem, but no solutions. A few posts mentioning -fPIC flag to the compiler, but I've been doing that.
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: R_PPC_REL24 relocation at 0x0e56191c for symbol `floor' out of range
Any ideas? I'm using Apache 2.0.55, kernel 2.6.10-1.ydl.1 on a PPC 750, with PHP 5.0.5 built as a DSO.
Source: http://www.livejournal.com/community/php_dev/62432.html
-
name based virtual hosts, suse
Date: 12/04/05
(Apache) Keywords: php, html, web, yahoo, google, apache
I am beginning to work on multiple sites on my home test server and need to set up virtual hosts.
My server is running SuSE 10 with Apache 2, and is accessed by typing in "talon" in firefox's address bar. I copied vhosts.template to site1.conf and edited it as follows:
Next I opened /etc/hosts and edited as follows:
Then, rcrestart apache2.... ok.
And here is where I am stumped.. (and btw I googled the bit about /etc/hosts - i'm not sure if that's how it should be). If I type in http://talon/site1 Apache says page can't be found. If I try http://site1 page can't be found. My site1 files exist in the DocumentRoot listed in the site1.conf file above.
I also read through apache's documentation on virtual hosts but the way they explained it didn't make as much sense to me.
Thanks for any and all help.. I've wanted to learn vhosts for some time now.
Source: http://www.livejournal.com/community/apache/27604.html
-
mod_jk vs mod_proxy_ajp
Date: 12/06/05
(Apache) Keywords: apache
Now that Apache 2.2 is out with AJP support built in, should I use it or continue using mod_jk? What's the difference? What are the benefits either way?
Any info appreciated. I'm just working on setting up Apache+JOnAS now, and I'd like to launch with the most current version.
x-posted
Source: http://www.livejournal.com/community/apache/27837.html
-
PHP Email
Date: 12/07/05
(PHP Community) Keywords: php, mysql, sql, linux, google, apache
Hello everyone I've got a little bit of a problem, @ work I run PHP on apache which then runs on Win2k Server. For email I have just edited the php.ini and changed
SMTP = smtp_port = 25
to point at our exchange server. Now here's the hard part @ home I run a linux server, well 2, 1 is my mailserver and various other stuff the other is my dev box, apache/mysql/php. How/what do I need to change to get my dev box to send mail to my mailserver ? I've had a look on google but drawn a blank.
My dev box is called pm-sr02, mailserver called pm-sr01.
Thanks for any answers
Source: http://www.livejournal.com/community/php/375707.html
-
I'm at a loss
Date: 12/10/05
(PHP Community) Keywords: php, mysql, sql, apache
This may be because my brain is fried after a format and reinstallation of everything but I can't seem to see the resolution to this problem.
I'm getting this: Fatal error: Call to undefined function mysql_connect() in...
I'm running PHP 5.1.1 as an Apache 2.0 module using MySQL5 on WinXP. I've been over php.ini several times and everything appears in order, and all the .dll's exist in their correct place, but it continues to insist it does not know the function.
Help is appreciated.
Source: http://www.livejournal.com/community/php/377171.html
-
major apache issues!
Date: 12/13/05
(Apache) Keywords: virus, web, google, apache
Hello, I just joined this fine community...actually it's quite an amazing coincidence that I found it right when my Apache server is having terrible problems. I haven't had problems with it up until recently, but lately it has just been really misbehaving on me! Normally I have one of my friends help me with it but he's really busy so hopefully someone here can be of service.
Here it goes:
I got a new computer (an emachine with Windows xp Media Edition) a few months ago and ran Apache on it just perfectly. I was all set to start working on a new layout for my web page when something weird happened with Comcast: they actually kicked me offline for having a virus! I never knew comcast could do that...so I had to go to Best Buy where they swept my entire computer clean and reinstalled all the things the machine came with. Luckily I had back up files of most of my pics and such...but not of Apache of course.
So I had to re-install Apache from its website. This is around where the trouble started. When I re-installed it, I followed the guidelines that my friend (who has always helped in the past) had written down for me in previous emails. I had saved the emails so that I could refer to them later in case of such things. I installed Apache 2.0.55, or as the actual file is read: apache_2.0.55-win32-x86-no_ssl.msi to my desktop and then ran the file. I typed in my information correctly (I even double and triple checked that!), and then continued to install...and Apache ran perfectly fine.
Then, of course, I had to go to the C:\Program Files\Apache Group\Apache2\conf file and modify the httpd.conf file. I copy and pasted what was in an email I received from my friend, which has always been correct in the past and which, previously, I have had NO problem with AT ALL.
However, when I restarted Apache, I got the following message: "The requested operation has failed!" It hasn't started since then. *cries*
I have tried to do the following to remedy (and possibly understand) what is going on:
1. I tested the Apache Server Configuration when I did this, it said that there was an error on line 15 of the httpd.conf file. I checked line 15 and didn't see anything out of order, but I was also unsure of what I was looking for, so that didn't much help.
2. I checked the Error Log File when I did this, this message (among message that were not errors or problems) came up: [Mon Dec 12 17:29:28 2005] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.
What exactly does this mean? I had no clue...
3. I searched for the words "Asynchronous AcceptEx" on google and came up with a few sites that I thought might explain what was going on, but mostly they were just a bunch of people talking about similar problems, rather than a solution to the problem.
Sooo...I still remain lost and need help! If anyone knows anything about this or has suggestions please let me know. This has been going on for about a month now and I am not a person with money (being a college kid and all), so I can't just have my domain name sit here being unused. :(
Thanks to anyone who can help me!
Source: http://www.livejournal.com/community/apache/27907.html
-
the web hosting question...
Date: 12/14/05
(Web Development) Keywords: php, mysql, database, sql, web, apache
I was wondering if anyone could recommend me a webhost that will meet the following requirements:
+ I want as much control as possible. If I decide one week I want to mess around with OracleDB, I want to be able to install it. If I want to use Ruby on Rails, I want to be able to install that too. I basically want to be able to do as much server administration as possible
+ I have the following musts: PHP 5, Apache, MySQL(preferred, but some kind of database)
+ I need a decent amount of space and bandwidth, but not a whole lot.
I have considered a dedicated server, but it seems to be far too expensive for now at least. Any ideas?
Source: http://www.livejournal.com/community/webdev/279180.html
-
gettext()
Date: 12/15/05
(PHP Community) Keywords: php, html, linux, apache
I just can not get gettext() to work! I feel like every article I've read on the subject offers a different way to implement this in a script, but none of them seem to be working for me. If anyone can offer any help, it would be greatly appreciated.
Server environment(s):
- Local
- Server
- Windows XP Prof SP2
- Apache 1.3.34
- PHP 5.0.5 (with the gettext extension enabled)
- File system
-
BASEDIR: c:\localhost\site\
internals\lang\ --language file directory
internals\lang\en\
internals\lang\en\LC_MESSAGES\messages.mo
internals\lang\en\LC_MESSAGES\messages.po
internals\lang\es\
internals\lang\en\LC_MESSAGES\messages.mo
internals\lang\es\LC_MESSAGES\messages.po
public_html\gettext.php --gettext test file
- Remote
- Server
- Linux (not sure of the distro)
- Apache 1.3.33
- PHP 4.3.11 --with-gettext
- File system
-
BASEDIR: /home/username/
(same as above)
------------------------ public_html\gettext.php ------------------------
putenv ("LANG=es"); setlocale(LC_ALL, "");
bindtextdomain ("messages", "c:\localhost\site\internals\lang"); textdomain ("messages");
print(gettext ("Hello!")); ?>
------------------------ shell commands ------------------------
xgettext -a --omit-header gettext.php
msgfmt -o messages.mo messages.po
------------------------ internals\lang\en\LC_ MESSAGES\messages.po ------------------------
#: gettext.php:27 msgid "Hello!" msgstr "!olleH"
------------------------ internals\lang\es\LC_ MESSAGES\messages.po ------------------------
#: gettext.php:27 msgid "Hello!" msgstr "Hola!"
EDIT: I've miraculously and inexplicably gotten the script to work on my local box, but it still won't work on the Linux server. I think it might have something to do with the "putenv("LANG=es"). Is there a different variable that needs to be set? Ideas?
Source: http://www.livejournal.com/community/php/379698.html
|