Apache & PHP Installation/configuration Problem
I am trying to set up the Apache Server for PHP (in Windows XP), but when I
ad the line:
LoadModule php4_module c:/php-4.2.3-Win32/sapi/php4apache2.dll
(in httpd.conf), then the Apache Server refuces to start (I get "The
requested operation has failed" msg).
Without that line the Apache Server starts with no problems. The directory
path is correct.
View Complete Forum Thread with Replies
Related Forum Messages:
PEAR Installation / Configuration
Hi, perhaps some php guru can shed some lite to my limited knowledge. My PHP installation directory is in: c:appsphpphp4 cli/ dlls/ extensions/ mibs/ openssl/ .... go-pear.bat .... I execute go-pear.bat and fill out the path entry: 1. Installation Prefix: c:appsphppear -- I change this! 2. Binaries directory: $prefix 3. PHP Coded directory($php_dir): $prefixpear 4. Documentation base directory: $php_dirdocs 5. Data base directory: $php_dirdata 6. Test base directory: $php_dir ests 7. php.exe path: $c:appsphpphp4cliphp.exe All installed OK. Did run PEAR_ENV.reg. Did add "c:appsphppearpear" in PHP.INI's include_path Then I cd to c:appsphppear ... There are no pear.bat but pear.bat_old There are pear.ini (???) How do I test this if my installation is working.
View Replies !
PHP/Apache Configuration
I'm still can't get Apache to restart after changing the httpd config file. I've upgraded my installation to 5.2. Apache 2.2.3 runs fine without any PHP additions. 1) I added my PHP directory, C:/PHP5, to my PATH 2) I copied php.ini-recommended to my C:/windows directory and renamed it php.ini 3) I made the following changes to PHP.ini doc_root = "c:/inetpub/wwwroot" extension_dir = "c:/php5/ext" 4) I made the following changes to Httpd.conf After the last entry in the LoadModule section: LoadModule php5_module "c:/php5/php5apache.dll" AddModule mod_php5.c If I comment out the above two statemens, Apache will start. In the <IfModule mime_moduleSection, I added AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" And that's it. When I restart Apache, I get an error dialog with the message: The requested operation has failed. What have I missed or done wrong?
View Replies !
Apache Configuration
I am absolutely new to PHP, highly motivated, but already stuck with a problem in the adjustments in the configuration file. I follow the plan laid out in the new Blog Design Solutions book, pp. 33-8 and have downloaded the newest version of both PHP and Apache - 2.2. Here's the problem: Apache cannot load the php5apache2.dll file into the server. In the conf file, line 116, it states; LoadModule php5_module C:/php5/php5apache2.dll and yes, php5 is placed at C:/.
View Replies !
Apache Configuration Tutorial
I have previously installed apache mysql and php. I need to do this again but all the tutorials do not cover the configuration of apache. Can anyone tell me where the old tutorial may happen to be?
View Replies !
Need One Urgent Help With Configuration Of Php With Apache!
I have successfully installed Apache “apache_2.0.54-win32-x86-no_ssl” and copied “php-5.1.0RC1-Win32” to c: with php name. Now made environment variable with “C:php” and copied php.ini recommended file in c:windows with php.ini name. Till now every thing is working fine means server is running but whenever I add module in https file under conf directory then that got unavailable. I don’t know why server is unable to load php and specified dll. Here I have Win XP and firewalled enabled.
View Replies !
MySQL, PHP, And Apache Configuration.
Hi, I was just wondering if anyone could help me to configure my home machine to run as a test server for PHP using MySQL and Apache. I am running WinXP pro and I would really appreciate some help. (I'm trying to learn PHP before paying the moola for a host, only to make a fool of myself while trying to learn PHP. I don't see any logic in paying for time to learn, when I could do it for free at home and then pay for a host...) I would be very thankful if you would imagine that I had just downloaded the files from their appropriate sites, and haven't even opened them yet. A walkthrough of the installation etc... The main part I've been having trouble with is editing the httpd.conf file for Apache;
View Replies !
Apache/PHP Sendmail Configuration
I have a standalone machine running Mandrake 10 with apache server and PHP installed. The PHP mail() function is working but very slowly. It takes about 10-20 seconds to send a single email. Can anyone advise me on what could be causing this? I have tried using mail() on other apache setups and the response time has been much faster. Below is the relevant section from my php.ini: php.ini ======= [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = me@localhost.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path =
View Replies !
Apache/ Configuration Problems
Everytime I put the link to my file into my browser, this pops up. Not Found The requested URL /hello.php was not found on this server. What does this mean, and how do I fix it?
View Replies !
Making Apache To 'reload' Its Configuration
I am having problems making Apache reload itself. I have tried a PHP exec calling a bash shell script that does a KILL -HUP on Apache to attempt to make it reload its configuration. The signal in the shell script works fine from root but will not work when called from PHP. Is there anyway to make Apache reload itself from PHP without having to doing a signal ? I am trying to do a configuration reload without requiring root.
View Replies !
OpenLDAP, Apache 1.3.31 And PHP 4.4.2 Configuration Problem
PHP is working fine with APACHE 1.3.31 on windows 2000 professional..now i tried to install LDAP support performed following steps: 1. Uncomment following entries in php.ini extension = php_ldap.dll extension = php_gettext.dll 2. Copy php_ldap.dll to WINNTsystem32 3. Copy files libeay32.dll and ssleay.dll to SYSTEM folder 4. Restart APACHE. now when i tried to execute sample LDAP script it gives me following error: Fatal error: Call to undefined function: ldap_connect() in c:program filesapache groupapachehtdocsldapchek.php on line 7 I guess LDAP support is not installed yet. so can anyone help me out?
View Replies !
Apache Server Configuration Problem
I am running the php applications on my systems apache server I will access http://localhost/application/pagename.php Assume that my system name is testuser I am not able to access the same from other system in the intranet or from my browser by using the following url http://testuser/application/pagename.php What configuration I have to made in the apache server
View Replies !
Change In The Apache Configuration File.
I've decided to quit doing my web site in ASP and go to PHP. So I downloaded Apache and all that. Apparently it is all working correctly. I could use a tutorial to help get me familiar with the workings of the server for testing scripts. Also, is there anything I need to change in the apache configuration file.
View Replies !
Php4 With Apache On Macosx: Configuration Question
I have MacOS X 10.3 (not the server edition), which includes apache and php4. But php hasn't been compiled --with-gd, and I need it, so I downloaded the source (4.3.4) and configured it with options '--with-zlib-dir=/usr/local' '--with-libjpeg=/sw' '--with-libtiff=/sw' '--with-libpng' '--with-png-dir=/sw' '--with-gd' '--with-mysql=/usr/local/mysql' '--with-xml' '--with-dom=/sw' '--enable-cli'. After make && make install, I've got my new php in /usr/local/bin, which I can use from the CLI. But how do I get apache to use this version of php instead of the one bundled with MacOS? I guess (though I don't know anything much about httpd.conf) that I should put something like LoadModule php4_module /path/to/new/libphp4.so in httpd.conf but I can't find any libphp4.so anywhere (apart from the old one in /usr/libexec).
View Replies !
Installation With Apache
i have recently installed apache and now im trying to install php. i have the newest php and newest apache i used the self installation then what do i do?
View Replies !
Installation Of Apache
Installed apache_2.0.44-win32-x86-no_ssl.msi on XP Pro, changed port to 8080 as I am running Skype. Opened up browser and typed http://localhost/ This is result Directory Listing Denied, This Virtual Directory does not allow contents to be listed.
View Replies !
Apache Installation
I used to use PHP with IIS as a web server, and everthing was working fine. Recently i formatted my pc, and i decided to try out Apache instead of IIS. I installed apache and when i type http://localhost in my web browser i get the page that apache is installed successfully. I have also installed php 5 the binary version using the same guidelines which i used to use with my previous installations (and never had any problems). however, this time when i put a website in the root folder and try to access it via my web browser http://localhost/sitefolder/index.php i am simply getting this page cannot be displayed.
View Replies !
Apache Installation Question?
I am able to install Apache in my XP home edition. I did put a very simple index.html /apache/htdocs/index.html and when I type in http://localhost/index.html, I get this error : Not Found. Please tell me where should I put the index.html? PS. I did not change httpd.conf and here is part of it DocumentRoot "/apache/htdocs" # # Each directory to which Apache has access, can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # permissions. # <Directory /> Options FollowSymLinks AllowOverride None </Directory> ==== http://localhost/index.html The requested URL /index.html was not found on this server. Apache/2.0.52 (Win32) Server at localhost Port 80 ==== http://localhost If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. The Apache documentation has been included with this distribution. You are free to use the image below on an Apache-powered web server.
View Replies !
PHP N Apache Installation On Solaris
Can anyone guide me how to install and configure PHP with Apache on Sun's Solaris 2.7 The details of my Solaris are as follows... Sun Ultra 5/10 System v Release 4.0 Solaris 2.7 SunOS Release 5.7 Generic_106541_06
View Replies !
Apache/mysql/PHP Installation
So i installed xampp package, and that works if i do not touch anything. If i change doc_root in Apache configuration file, localhost points to the location and html files execute normally but php doesnt. Can anyone tell me what else must i setup except Apache conf file so i can execute PHP files in directory i create somwhere on the disk? How can i change the default directory in which php scripts are executed?
View Replies !
Question On My Apache 2.2.4/PHP 5.2.3 Installation
how I could fix this issue with my installation of PHP 5.2.3 as a module of Apache 2.2.4 on my Windows XP Pro SP2 system: I recently installed Apache 2.2.4 to C:/apache using the installer, then I manually installed PHP 5.2.3 into C:/apache/php. After configuring doc_root in my php.ini file accordingly, I set up PHP as a module for Apache by adding the following lines to my Apache httpd.conf configuration file: Code:
View Replies !
Php-apache Installation Porblems
I have been trying to install php5 to use with apache2 and windows xp. Apache installs fine and when you look up localhost you see the apache welcome screen no problems. Then the fun begins I download php5 save it to C drive under PHP5 move and rename the php.ini file to WINDOWS. Then move php5ts.dll to WINDOWS-SYSTEM32. Edit the apache config file with the usual LoadModule and AddType info. Then create phpinfo file store it in htdocs in apache. When I try to access it in IE, Firefox or Opera all I get is the error 404 file not found message. If you load a html page into the browser this works fine. I have restored my computer numerous times to rectify the problem but every time same message. No matter where you move the files always the same.
View Replies !
Installation Php For Ldap And Apache Under Linux
i'm trying to compile for apache the php with a link for functions ldap In a static way with apache , i have to launch a configure for apache first , then i go to php and i launch a configure --with-apache= directory apache --with-ldap = directory ldap and i finish with make and make install for php: this is functionning The last thing to do is to activate module php for apache with the following command for apache : ./configure --activate-module=/src/modules/php3/libphp3.a and after make and make install but when i launch the make the functions ldap aren't not found I use apache 1.3.12 , php 3.0.17 and openldap 1.2.11 and a linux mandrake 7.0.
View Replies !
Installation (MySQL, Apache, Perl, And PHP)
I just installed MySQL, Apache, Perl, and PHP, and am having some issues with PHP. I am not really sure if it is loaded correctly. When I execute apachectl restart, it responds that the server is restarted, but a test html page with the tag <phpinfo ( )?> does not produce any specific output. Is this a correct test page, or how else can I test that PHP is functioning as a Apache DSO?
View Replies !
Win98, Apache & Php4.3 Installation
I tried to install php as apache module. Previously it has been cgi. WIn 98 is not supported but cgi worked fine, anyway. I tried to everything according to instructions in php.net, but still it didn't work. - I put php4ts.dll to windows/system32 directory. - I configured http.conf: - I used the path where I had put php download (PHP 4.3.3 zip package [6,180Kb]). - I commented these three lines that were for the CGI-install: # ScriptAlias /php/ "c:/php/" # AddType application/x-httpd-php .php # Action application/x-httpd-php "/php/php.exe" But Apache didn't start. It died because of this line: LoadModule php4_module "c:/HERE_WAS_MYPATH/sapi/php4apache2.dll" http://fi2.php.net/manual/en/install.apache2.php If you would like to use PHP as a module in Apache 2.0, be sure to move php4ts.dll for PHP 4, or php5ts.dll for PHP 5, to winnt/system32 (for Windows NT/2000) or windows/system32 (for Windows XP), overwriting any older file. You need to insert these two lines to your Apache httpd.conf configuration file to set up the PHP-Module for Apache 2.0: Example 3-8. PHP and Apache 2.0 as Module ; For PHP 4 do something like this: LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php ; For PHP 5 do something like this: LoadModule php5_module "c:/php/sapi/php5apache2.dll" AddType application/x-httpd-php .php Note: Remember to substitute the c:/php/ for your actual path to PHP in the above examples. Take care to use either php4apache2.dll or php5apache2.dll in your LoadModule directive and notphp4apache.dll or php5apache.dll as the latter ones are designed to run with Apache 1.3.x. Warning Don't mix up your installation with dll files from different PHP versions . You have the only choice to use the dll's and extensions that ship with your downloaded PHP version.
View Replies !
Installation Of Php/apache/mysql On Win98
I'm using an old computer - Win 98. I'd like to install php/apache/mySql on it but there are many versions and some do not recommend installing on Win98. If somebody could point me in the right directions about which versions of apache, mySql and PHp - or if there is a package suitable for Win98 that would be great.
View Replies !
Installation Question Re: Apache Httpd.conf
I'm trying to configure the config file in Apache to load the PHP module, but am getting the following error: LoadModule takes two arguments, a module name and the name of a shared object file to load it from The lines I added to the config file were as follows: LoadModule php4_module c:Program FilesPHPphp4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php I have loaded the appropriate phpapache.dlls into the Apache directory where the apache exe resides, but am still not able to run the web server. If I have copied those files to the directory, do I still need to load the modules within the config file?
View Replies !
Fedora 4.0- PHP 5 - MYSql 5 -Apache With 64 Bit Installation Help...[URGENT]
Can anyone help in installation of Fedora 4.0 , PHP 5 and MYSql 5 with Apache webserver I want to install 64 bit version of all because I bought new PC with 64 bit supporting. Please provide me help where I can get step by step information about installation of all above and if necessary give download link also. I tried myself lot but not successfull. I have 64bit fedora 4.0 which is installed from fedora site. Guide me soon if possible I need to start project in PHP 5 and MySql 5.
View Replies !
PhpMyAdmin Installation - Thorough Installation Guide.
I am trying to install phpMyAdmin-2.6.3-pl1 on my machine because I am familiar with working with it itself, but not installing it. I have Apache 2.0.54, php 4.4.0, mysql 4.1.14 running on a Win XP Home machine. Like I said, I've never installed phpMyAdmin before and I've looked at the documentation and I can kinda make out what it says, but I'd rather try to find a very thorough installation guide.
View Replies !
IIS Configuration
I'm trying to get a PHP script that sends an email working. I have modified the php.ini file to include the proper values for SMTP =, smtp_port=, and sendmail_from=. However, when I try to send mail using the script, I get 'Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in....". I have an actual server name specified for SMTP=, but it seems almost as if the server isn't reading the php.ini file. As a test, I included the ini_set(SMTP, xxxx) and ini_set(sendmail_from, xxxx) in the php script itself, and the mail worked. Unfortunately, we have hundredes of scripts, and I don't fancy the idea of changing them all. Why isn't the setting in php.ini working?
View Replies !
GD - Configuration
does anyone know how to configure GD Library in simple instructions for making bar graphs? please help if you can... im using windows xp with php apache macromedia dreamweaver
View Replies !
PHP Configuration
I've installed PHP 5 with Apache server on local, and the content of php.ini as follow: include_path = ".;C:phpincludes" session.save_path = "C:Temp" session.cookie_path = session.use_trans_sid = On doc_root = "C:Program FilesApache GroupApache2htdocs" extension_dir = "C:phpext" extension=php_mysql.dll extension=php_mysqli.dll mysql.default_port = 3306 mysql.default_host = localhost mysql.default_user = root mysqli.default_port = 3306 mysqli.default_host = localhost mysqli.default_user = root register_globals = yes When I navigate to another page with <a href=> the session is working just fine, but if I use javascript to navigate to another page ( window.location / window.navigate / window.open ), the session is terminated. Could somebody please tell me how to configure the php.ini file ( or maybe Apache server ) to navigate by javascript ?
View Replies !
GD Configuration
I've tried all the tutorials online concerning the GD configuration and I cannot get it to work no matter what I do. So far I've uncommented the line extension=php_gd2.dll and changed the extensions directory to "C:home_serverphp". I was told I shouldn't have to download the dll because it already comes with my php installation.
View Replies !
PHP Configuration File
I need to include the option --enable-sockets in my PHP configuration. Can someone tell me the name of the configuration file I need to edit (and its default location)?
View Replies !
XML-based Configuration
Does anyone know a good way to retrieve data from inside of an XML file and use it for configuration within my PHP apps? I tried PHPXConfig, and even with caching a serialzed version of the object, using the getData() method (you give it an XPath) makes my application a lot slower.
View Replies !
Windows Configuration
I have experienced problems getting the PHP 4.0.4pl1 [735Kb] CGI only version to work properly with PWS running on Windows 98. I downloaded the PHP 4.0.4pl1 [3.737Kb] CGI binary plus server API version and got that to operate fine, so far. However, I read that this version is not as stable as the CGI only version.
View Replies !
Httpd.inc Configuration.
I have installed php apache and mysql all otgether not while ago, and i test them and theyr working fine. I also forwarded my domain name to it and everything. 1. when I am typing my domain.com/phpMyAdmin it just take mes to the phpmyadmin, without asking me a log in. 2. I have read all about apache and everything and how it can not be secure sometimes and ppl can get to your httdocs. so my question is how can I configure apache or that httpd file so no one else except me can access those directories? 3. and another question is, is there a way to install PERL on apache?
View Replies !
Configuration File
What is the best way to do a configuration file? I want it to be easy to edit and contain a lot of defined values. (But not nessasarily use "define"). I have seen it as an array before, and have used that, but I have to do "global $config" for every function that uses it. Is there an easier way? Should I be doing it some other way? Ideally I would like a C syntax DEFINE, the only reason I'm not using define() is because I don't like the way it looks - it makes it a bit more confusing to change.
View Replies !
Php Session Configuration
i have a problem on my home computer when working with sessions. sessions start fine and the data in them can be accessed by other scripts that use session_start() fine but, any updates to the data are lost and scripts only ever retrieve the first value assigned to a variable since discovering this i have tested my code on a web sever and it works, which leads me to belive there is a problem somewhere in my configuration files. i have apache 2.0 and php 4 installed. has anybody come accross this problem before or know the likely cause
View Replies !
Web Hosting Configuration Help
I am using a web hosting service for my web site and it is running Apache 1.3.27 with PHP4 however when I try to run some of my PHP code it doesn't have all the required libraries. Error message: Warning: Unable to load dynamic library '/usr/lib/php4/readline.so' - /usr/lib/php4/readline.so: cannot open shared object file: No such file or directory in ... I am developing locally on Windows XP so my question is where can I get a pre-compiled readline.so library and when I get that do I just need to upload it into the directory shown above? Will that solve my problem?
View Replies !
PHP Server Configuration
I have a problem with my servers PHP configuration that is really begining to fustrate the heck out of me. I have an intranet resume building applications I wrote. The application is basically split into interface code and back end code. How this is done is the front end PHP files will call a specialized data processing PHP file, which in turn will usually direct the browser back to the interface file via the header() function (with the exception of for instance the log in page and a handful of others). The problem I'm experianceing is that frequently PHP will generate the error: CGI Error: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Frequently this error will be generating with you try using the header function to redirect to a web page that does not exist on the server. However these pages do indeed exist. I am running PHP on Windows XP Pro and PHP version 4.3.2, this is my personal development server. I am running it with IIS 5.1, with Visual Studio.Net Enterprise Architect edition and the server is configured with the Microsoft.Net Frame Work version 1.1. Second question, does anyone know of any good references on meshing PHP and ASP.Net web services? I was interested in using these technology together and basically just seeing what I can do.
View Replies !
PHP Configuration Troubles
I'm trying to set up PHP on my home PC, which runs XP-Home. I already have Apache 2.0.54 running. I was going line-by-line through the install.txt instruction file that came with the download of PHP 5.0.4. THe process seemed to be going along well until I got to the following:[color=blue][color=green][color=darkred] >>>[/color][/color][/color] Windows NT/200x/XP and IIS 4 or newer PHP may be installed as a CGI binary, or with the ISAPI module. In either case, you need to start the Microsoft Management Console (may appear as 'Internet Services Manager', either in your Windows NT 4.0 Option Pack branch or the Control Panel=>Administrative Tools under Windows 2000/XP). Then right click on your Web server node (this will most probably appear as 'Default Web Server'), and select 'Properties'. <<< I'm not seing anything like 'Internet Services Manager' under Administrative Tools, so I'm unable to proceed. Can anyone give me a push in the right direction?
View Replies !
Configuration Question!!!
I am hoping one of you has encountered this error before and know how to fix this. I am configuring my php.ini script extension parameters to allow for Oracle connectivity from within a PHP page. I am running PHP version 4.3.4 I am running PHP on an Apache server I am running on a Windows 2000 server architecture My PHP server has run perfectly since I installed it last November. However, I have uncommented the line (I need PHP to interface with an Oracle database) extension=php_oracle.dll within the php.ini file. As a result, my Apache 9iAS service for Oracle will 'not' start. I'm getting "Could not start the Oracleors9iasHTTPServer service on Local Computer. Error 1067: The process terminated unexpectedly." The line extension=php_oci8.dll when uncommented works just fine without error (this is the other extension necessary to enable Oracle connectivity.)
View Replies !
Mail Configuration
i've install my php not on the a real domain on net, but local, so i'm using simply "http://localhost/" , and i'm using apache . for the activation link for the registered users, i found out the codes, in some part i have : / send e-mail to ... $to=$email; // Your subject $subject="Your confirmation link here"; // From $header="from: your name <your email>"; // Your message $message="Your Comfirmation link "; $message.="Click on this link to activate your account "; $message.="http://www.yourweb.com/confirm.php?passkey=$confirm_code"; // send email $sentmail = mail($to,$subject,$message,$header); i wanted to know should't i configure anything in my php.ini for sending e-mails ? i hvn't done any changes in that file, last changes was main changes to make it work ... so what should i do to still use my localhost ? (i'm just training and studing php) can i send mail with my "http://localhost/" ?
View Replies !
Php Configuration For Email
What is the php configuration for email? It works on the server but sending email on my testing server doesn't work. Here's what in my php.ini file- [mail function] ; For Win32 only. SMTP smtp@tiscali.co.uk smtp_port = 25 ; For Win32 only. sendmail_from = gary@garyt.co.uk
View Replies !
Configuration Of Sessions In Php.ini
well i asked in another thread why my sessions don't work. now i know. i didn;t configure them correctly in the php.ini file. now the question. i changed session.save_path = "/tmp" to session.save_path = "D:/tmp" and created D:/tmp folder. and it saves the session there. is this the correct way to do it. becouse the sessions work now but is the right way.
View Replies !
|