Jump to content
php.lv forumi

apche nedarbojas pec httpd.conf maiņas


Recommended Posts

php-5.2.17

apache-2.2.22

 

windows XP

 

uzinstaleju apache "it works!'

uzkopeju c:/php

 

nedaudz pamainiju php.ini

 

un pec

 

LoadModule php5_module "c:/php/php5apache2_2.dll"

AddType application/x-httpd-php .php

PHPIniDir "C:/php"

rindu pievienošanas apache config. failā vairs nerestartejas..

 

Starting the Apache2.2 service

The Apache2.2 service is running.

rmine the server's fully qualified domain name, using [iP address] for ServerName

[Fri Jun 15 10:07:13 2012] [notice] Apache/2.2.22 (Win32) configured -- resuming normal operations

[Fri Jun 15 10:07:13 2012] [notice] Server built: Jan 28 2012 11:16:39

[Fri Jun 15 10:07:13 2012] [notice] Parent: Created child process 3780

httpd.exe: Could not reliably determine the server's fully qualified domain name, using [iP address] for ServerName

httpd.exe: Could not reliably determine the server's fully qualified domain name, using [iP address]for ServerName

[Fri Jun 15 10:07:13 2012] [notice] Child 3780: Child process is running

[Fri Jun 15 10:07:13 2012] [notice] Child 3780: Acquired the start mutex.

[Fri Jun 15 10:07:13 2012] [notice] Child 3780: Starting 64 worker threads.

[Fri Jun 15 10:07:13 2012] [notice] Child 3780: Starting thread to listen on port 80.

[Fri Jun 15 10:18:33 2012] [notice] Parent: Received restart signal -- Restarting the server.

[Fri Jun 15 10:18:33 2012] [notice] Child 3780: Exit event signaled. Child process is ending.

[Fri Jun 15 10:18:33 2012] [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.

Pre-configuration failed

[Fri Jun 15 10:18:33 2012] [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.

[Fri Jun 15 10:18:34 2012] [notice] Child 3780: Released the start mutex

[Fri Jun 15 10:18:35 2012] [notice] Child 3780: All worker threads have exited.

[Fri Jun 15 10:18:35 2012] [notice] Child 3780: Child process is exiting

 

kur ir problema?

Edited by rinal
Link to comment
Share on other sites

[Fri Jun 15 10:18:33 2012] [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.

Pre-configuration failed

 

Uzinstalē normāli PHP

http://www.php.net/downloads.php

Link to comment
Share on other sites

Kaut ko nepareizi dari.

Izmēģini uzinstalēt šito, ja viss ies, tad jau bus skaidrs kurā gala ir problēma:

 

http://www.apachefri...pp-windows.html

 

Ja, ne tad vienu dienu jāizlasa kāds manuālis vai pamācība, kā uzinstalēt Apache, PHP , MySQL.

 

Varbūt secība nav pareiza? :)

 

Vispirms uzinstalē MySQL, tad PHP un tad Apache.

 

php.ini-recommend jāparsauc par php.ini ;)

 

PHPIniDir "C:/php" rinda ir šausmīgi aizdomīga.

Edited by blackhalt
Link to comment
Share on other sites

Vispirms uzinstalē MySQL, tad PHP un tad Apache.

nē sākumā Apache, tad PHP -

tā kā Mysql nav saistīts ne ar PHP ne Apache tad nav svarīgi kad viņu instalēt.

Es parasti daru sekojoši:

uzinstalēju Apache, tad PHP - izmantoju to kuram ir instalātors , kurš parasti paprasa kāds HTTP serveris tiek lietots.

Parasti tas max aizņem 30 min (ar visu vilkšnu )

Link to comment
Share on other sites

ne "svēto" karu dēļ, bet šis prasa tik cik laika, lai pakas atvilktos:

apt-get install mysql-server mysql-client libmysqlclient15-dev
apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2-suexec libexpat1 ssl-cert
apt-get install libapache2-mod-php5 libapache2-mod-ruby libapache2-mod-python php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-suhosin php5-tidy php5-xcache php5-xmlrpc php5-xsl
a2enmod ssl
a2enmod rewrite
a2enmod suexec
a2enmod include

 

produkcija taču tāpat nestāvēs uz Windows

vienīgais ērtums, labot projektu turpat, kur tas hostējas, nevis aploudoties caur ftp, scp

Edited by ieleja
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...