Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Apache PHP not working
Old 01-22-2012, 11:27 AM Apache PHP not working
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
I'm trying to setup a test server on my computer but getting errors in the Apache error log.

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php5\\php_gd2.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php5\\php_mbstring.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php5\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php5\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Sun Jan 22 03:03:59 2012] [notice] Apache/2.2.21 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Sun Jan 22 03:03:59 2012] [notice] Server built: Sep  9 2011 10:26:10
[Sun Jan 22 03:03:59 2012] [notice] Parent: Created child process 5012
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
I have the server setup like this

C:/server
C:/server/apache
C:/server/php
C/server/www

I get an error in phpmyadmin saying unable to load mysqli too.
In the error log above it shows C:\\php5\\ I don't see any directories set to this location in either php.ini or httpd.conf

Please help.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
 
Register now for full access!
Old 01-22-2012, 11:31 AM Re: Apache PHP not working
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
What is your extension_dir (in php.ini) set to. Normally extensions are in the php/ext directory, not the root php directory.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 01-22-2012, 11:38 AM Re: Apache PHP not working
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
Code:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "C:/server/php/ext"
; On windows:
; extension_dir = "ext"
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Old 01-22-2012, 11:42 AM Re: Apache PHP not working
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Those lines are commented. There should be a line somewhere below that were the extension directory is actually being set. By default it should be something like:
Code:
extension_dir="C:\php\ext"
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 01-22-2012, 11:47 AM Re: Apache PHP not working
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
Changed it but still getting an error

Code:
PHP Startup: Unable to load dynamic library 'C:/server/php/ext\php_pdo_sqlite.dll'
Should it not be loading like C:/server/php/ext/ext_folder?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Old 01-22-2012, 11:57 AM Re: Apache PHP not working
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Backslashes and forward slashes are interchangeable as far as PHP is concerned.

Locate your extension directory and make sure that those DLLs exist.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 01-22-2012, 12:49 PM Re: Apache PHP not working
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
all the dll files are there trying to copy files in to the ext folders causes apache to stop.

all the dlls are in the main ext folder

any idea's?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Last edited by audiomad; 01-22-2012 at 12:50 PM..
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Old 02-01-2012, 11:50 PM Re: Apache PHP not working
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
If you do not have much experience in setting up servers, I would recommend you to use XAMMP from ApacheFriends
That should get you started for your Web development.
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 02-04-2012, 06:25 PM Re: Apache PHP not working
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
I ended up removing it all and trying xammp but that did not work either, I've installed plenty of testing servers on my computers in the past but never got anything like this. I'm using a laptop at the moment 64bit which has two directories which is new to me, I've had 64bit computers / laptops in the past but having a system for 32bit and 64bit within one was strange "two system folders". I figured it was causing issues.

I ended up trying easyphp which looks for free ports and it seemed to work, would have rather the full setup but can't be picky.

Thanks for the help.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Reply     « Reply to Apache PHP not working
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.97723 seconds with 12 queries