Beruflich Dokumente
Kultur Dokumente
The PHP Home Edition 2 binaries are primarily distributed as a Vise Installer
package,
and may be available as a .zip file as well. These packages are named
phphome2.exe and
phphome2.0.xx.zip. Please choose VISE package if at all possible.
PHP Home Edition can be run under Windows XP,Windows NT and NT2000. It is
compatible also with Windows with upgraded Winsock to level 2.1
NOTE! PHP Home 2.2.8 is now not compatible with Windows 9x due internal problem
of
Apache crashing with library libhttpd.lib. If this problem will be fixed, we will
also release service patch.
Version 2.2.9 and higher was not tested on WIn98, because i have no installed.
Please report all
working versions on my email!
WARNING!!! Before installing PHP HOME on Windows 98/95, please install also this
packages:
both are available from www.microsoft.com, because I dont want to cover them in
this program :)
http://www.microsoft.com
Due above mentioned problems now Windows 95,98,Me are NOT SUPPORTED. This can be
changed anytime :)
-----------------------------------------------------------------------------------
---------------------
To remove access info (passwords) just remove file my.ini in your windows
directory.
Installator will remove this file automatically, if it exists!
If you have problem with Apache shutdown under Win 9x/Me, always stop this server
manually
before shutdown of your OS! Brutal force mode is not recommended!!!
If you know how to disable Apache service under Win 9x let me know! I cannot
support
these systems, because primarily I am operating on Windows 2000/XP, Debian Linux
&
Solaris 8/9.
When you are installing PHP Home, just enter proper value in Web Folder box.
When you have PHP Home already installed, then reinstall or change manually:
You must edit httpd.conf file and change DocRoot directive and Docroot Directory
directive. Then you MUST RESTART your WWW server (or Windows) so changes
can take effect.
5. I have problems with the download, where can I find the whole package?
--------------------------------------------------------------------
This work only if PHP is running in MODULAR mode. You can check it by
using phpinfo(); function in your script.
CGI mode is pretty stable, modular not at all, but we are working on
improvements.
Under WIndows XP I have no crash in the last 12 months in modular mode :).
Primarily
I only use self-compiled PHP, which is "common" stable.
Yes, we have SSL enabled Apache. But for "real guru-s" only ;)
It's probably because MYSQL DBS server is not started. Running mode is indicated
with
a green indicator in system tray. If not, run a MYSQL server daemon. If an error
with access denied has occured, check your config file (config.inc.php)in
phpMyAdmin
directory and set correct login/password to access your database, because you
made
a mistake during install (maybe not same login/password), but I don't care,
it's now your problem.
example:
$cfgPmaAbsoluteUri = 'http://'.$_SERVER["SERVER_NAME"].'/phpMyAdmin';
http://your_server_name/phpMyAdmin
or
http://127.0.0.1/phpMyAdmin
If the system is not responding during "Searching for installed components" just
relax and
wait. This phase can be really time consuming, while contacting all www servers
and
checking the system installation package. Maximal response time is about 10
minutes. Maybe
you haven't installed your network devices properly.
If you have problems with this, attach setuplog.txt file and send to support
email.
Also add your operating system identification.
This time is because InVise control all files' dependencies, I cannot cut this
time down.
In near future we will migrate on another install package system (probably from
version 3.x)
Some users are behind proxy or firewall because of security. Our installer
support
HTTP based proxy.
If you are behind a firewall or proxy, just enable proxy dialog in installation
update
phase and enter your firewall or proxy settings.
Enter name without leading protocol name (http://)
e.g.
proxy.army.com
emeacache.lego.dk
For ports you should use numbers like 80,1080,3128,8080 and other. If unsure,
gather
information from your browser settings or ask your Administrator.
Do not mail us, we will ignore ANY PROXY settings mail ;)
Vertical update isn't and will not be supported! You should uninstall previous
version
of PHP Home and delete all files (php.ini,my.ini) and all library files.
Then install PHP Home 2.
In new verions of PHP you must install service support manually to avoid
automatic server installation :)
Use the command line and navigate into the Apache directory (using NC,WC,or cd
command).
From here enter the command
apache.exe -k install
-----------------------------------------------------------------------------------
----
Try to run apache manually from apache bin directory (bin) and fix problem. If
you have installed
Microsoft IIS, please shut it down before installation!
Check the file httpd.conf and select one option (MODE 1,MODE2) and disable other.
Then
restart Apache. Control with phpinfo() function.
If you have some other problems, try to look into apache log file in log
directory.
This is common with Internet Explorer. I have removed this software, because each
version
uses different caching settings and does not apply to W3C caching
recommendations. Use Opera or
Mozilla instead (www.opera.com & www.mozilla.org).
A good point is to install thirty party software that manage MS IE cache. Try
CacheSentry at
http://www.ticon.net/~dpoch/enigmatic.
To check the caching, try at the first line of your script following code.
<?php
Header("Expires: ".GMDate("D, d M Y H:i:s")." GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
//....your code
?>
check php.ini and httpd.conf and set correct charset! Remember to restart
Apache.
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@server1.com
DocumentRoot /www/server1
ServerName server1
ErrorLog logs/www.s1-error_log
CustomLog logs/www.s1-access_log common
</VirtualHost>
<VirtualHost *>
ServerAdmin webmaster@server2.com
DocumentRoot /www/server2
ServerName server2
ErrorLog logs/www.s2-error_log
CustomLog logs/www.s2-access_log common
</VirtualHost>
Currently, only few installations are available, because I can fluently speak
and
write only Slovak, Czech and English. If somebody wants to help with translation
(takes about 2hours)
feel free to email me.
+ Polish
+ Danish
+ Swedish
The Unisys company holds patent used in GIF images. Because using GIFs without
paying
fees to Unisys is prohibited, GD discontinued support GIF in version 1.6.
We also use PNG images instead of GIF images. If you need an "old" GD library,
try to find it yourself and include it into phphome.
In httpd.conf change:
(Maybe "My Website" for Win98 and "My Webs" for Win2K ???)
I've written a PHP script to use the path info. Why doesn't PHP path
info get passed to my php script? I want to use urls like this:
http://www.mysite.com/news/2002/10/22
$path = $_SERVER['PATH_INFO'];
$dirs = split("/", $path);
A: in httpd.conf add:
AcceptPathInfo on
I name a php script news.php but Apache doesn't recognize the url:
http://www.mysite.com/news/2002/10/22 Why?
A: Create .htaccess file in the document root directory with the following
lines:
<Files news>
ForceType application/x-httpd-php
</Files>
- Create a directory somewhere called www or use the current one. For
example install another hard disk or partition E:\www
- Create subdirectories such as domain1, domain2, domain3 in the www directory.
E:\www\domain1 E:\www\domain2 E:\www\domain3
- Follow the PHP Home Edition FAQ for setting up virtual domains.
- In httpd.conf set the docroot to point to the domain1, domain2, domain3
directories.
- Edit C:\WINNT\system32\drivers\etc\hosts and add:
127.0.0.1 domain1.home
127.0.0.1 domain2.home
127.0.0.1 domain3.home
- Restart the Apache service
- enter url:
http://domain1.home
http://domain2.home
http://domain3.home
-----------------------------------------------------------------------------------
--
Q: I wrote a php script that uses mail(), but nothing happens. Where does
the mail go? How can I get it to send mail from my W2K box to the world?
A: Edit C:\WINNT\php.ini
Change the following lines:
SMTP= localhost
; for Win32 only sendmail_from= me@localhost.com
; for Win32 only
;sendmail_path=
;for unix only, may supply arguments as well (default is 'sendmail -t -i') to:
;SMTP=mail.attbi.com; (This is an example, use your own ISP SMTP mail
;server not necessarily attbi)
;sendmail_from=myaccount@attbi.com
When you use the php mail() function it takes the "from" email address as a
parameter so setting sendmail_from probably doesn't matter except as a
default. Use the same SMTP server that you use for your ISP broadband or
dailup account.
-----------------------------------------------------------------------------------
--
Q: Why don't sessions work? I've installed phpWebSite
(http://phpwebsite.appstate.edu/) but I can't enter the admin page to set
up my website. I notice that the session ID's aren't being sent in the
URL's. Why?
A: You need to create a directory for the sessions id's. PHP Home Edtion 2
sets up php.ini to point to the directory:
session.save_path = "C:\Program Files\PHP Home Edition
2\Apache2\php\sessiondata"
but the sessiondata directory is missing and Apache can't create it.
-----------------------------------------------------------------------------------
--
Q: When configuring MySql, the app winMySQLAdmin has a "green" light when
I'm administrator, but if I start it when logged in as a user I get a red
light. Does that matter?
A: It doesn't seem to matter. If you start the task manager you should see
the mysql process running. Or looking at control panels/administration
tools/services you should see mysql as started. If you can run phpMyAdmin
and interact with the database then the mysql server is ok.
-----------------------------------------------------------------------------------
--
Q: What about using phpMyAdmin? Any other ways to configure it or use it?
A: There are lots of ways. One way is to use virtual hosts. If using them,
one could be configured for phpMyAdmin.
- In the hosts file add:
127.0.0.1 phpmyadmin.home
<VirtualHost *>
ServerAdmin webmaster@nothing.com
DocumentRoot "C:\Program Files\PHP Home Edition 2/www/phpMyAdmin"
ServerName phpmyadmin.home
ErrorLog logs/sql-error_log
CustomLog logs/sql-access_log common
</VirtualHost>
-----------------------------------------------------------------------------------
--
Q: When I run phpMyAdmin I get a red message on the page complaining about
cfgPmaAbsoluteUri needing to be configured. What's up with that?
- as any user you can run phpMyAdmin. If you have messed with virtual
domains or set the docroot to be somewhere other than the default in PHP
Home Edition 2, then you may have to put the phpMyAdmin folder somewhere
else to run it. Otherwise, when you enter it's url it (Apache) will present
you with a login window. Use "administrator" and the password for your
win2k administrator login. Add a user to mysql and password if one wasn't
already set up. Follow the install instructions for phpWebSite and edit
it's config.php file. Set the database variables to your new database. Then
click the install link to install phpWebSite.
Download the latest version of the Microsoft Data Access Components (MDAC)
for your platform, especially Microsoft Windows 9x/NT4 users.
MDAC is available at http://www.microsoft.com/data/ .