Directory issues
Posted: Tue Apr 10, 2007 3:02 pm
Hi there,
I'm currently trying to learn PHP and develop an online store with a shopping cart function along the way. I need a lil bit of help, and it would be GREATLY appreciated if you did. The only detailed tutorial I have been able to find is here: http://www.php-mysql-tutorial.com/. First off, if you have anywhere else to point me to (that is better than that) PLEASE do so. I'm admittedly a newb to PHP (but not webdesign). I need to get a webpage utilizing this function up ASAP, but I will not sacrifice time for quality.
I'm quite good with following tutorials and learning from them. I'm a problem solver and like to work through the issues, however I'm completely in the dark on this one.
When trying to install Apache PHP and MySQL, I came across a few problems. Under the section "Installing PHP" (http://www.php-mysql-tutorial.com/insta ... -mysql.php) it states: Next, move the php4ts.dll file from the newly created php directory into the sapi subdirectory. Quoting from php installation file you can also place php4ts.dll in other places such as :
* In the directory where apache.exe is start from ( C:\Program Files\Apache Group\Apache2 \bin)
* In your %SYSTEMROOT%\System32, %SYSTEMROOT%\system and %SYSTEMROOT% directory.
Note: %SYSTEMROOT%\System32 only applies to Windows NT/2000/XP)
* In your whole %PATH%
Because this tutorial is old and I downloaded the newest versions of everything, there was no folder directory named "sapi." I only have "dev," "ext," "extras," and "PEAR." As well, I don't have a php4ts.dll file and instead have a php5ts.dll file. Which directory should I move this file into rather? Or could I just remove "sapi" from any directory path (which I will address in part of my next question) and just leave it where it is? And if I were to move it into the "bin" directory in my Apache folder, what else do I need to change?
Next, in the part titled "Modifying Apache Configutation" he said to enter:
LoadModule php4_module php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
into the httpd.conf file. I had no problem locating this file, and simply copy/pasted it at the bottom of the text document (i assume its placement doesn't matter?). Noting again that I don't have the sapi directory -- I just assumed that I could leave the php5apache2.dll file in the php directory, and remove "sapi" from the directory path and then change the file from php4 to php5.
Doing all of this, I saved it and tried to restart Apache, however I've been recieving this cmd prompt error:
httpd.exe: Syntax error on line 486 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/php/php5apache2.dll into server: The specified module could not be found.
That's where I stand. I'm hoping that if I can get everything running properly after this that I can work through the tutorial without too much difficulty, but for now I rely on ya'lls help to push me through this. Any support, ideas, solutions is greatly appreciated.
Charlie
I'm currently trying to learn PHP and develop an online store with a shopping cart function along the way. I need a lil bit of help, and it would be GREATLY appreciated if you did. The only detailed tutorial I have been able to find is here: http://www.php-mysql-tutorial.com/. First off, if you have anywhere else to point me to (that is better than that) PLEASE do so. I'm admittedly a newb to PHP (but not webdesign). I need to get a webpage utilizing this function up ASAP, but I will not sacrifice time for quality.
I'm quite good with following tutorials and learning from them. I'm a problem solver and like to work through the issues, however I'm completely in the dark on this one.
When trying to install Apache PHP and MySQL, I came across a few problems. Under the section "Installing PHP" (http://www.php-mysql-tutorial.com/insta ... -mysql.php) it states: Next, move the php4ts.dll file from the newly created php directory into the sapi subdirectory. Quoting from php installation file you can also place php4ts.dll in other places such as :
* In the directory where apache.exe is start from ( C:\Program Files\Apache Group\Apache2 \bin)
* In your %SYSTEMROOT%\System32, %SYSTEMROOT%\system and %SYSTEMROOT% directory.
Note: %SYSTEMROOT%\System32 only applies to Windows NT/2000/XP)
* In your whole %PATH%
Because this tutorial is old and I downloaded the newest versions of everything, there was no folder directory named "sapi." I only have "dev," "ext," "extras," and "PEAR." As well, I don't have a php4ts.dll file and instead have a php5ts.dll file. Which directory should I move this file into rather? Or could I just remove "sapi" from any directory path (which I will address in part of my next question) and just leave it where it is? And if I were to move it into the "bin" directory in my Apache folder, what else do I need to change?
Next, in the part titled "Modifying Apache Configutation" he said to enter:
LoadModule php4_module php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
into the httpd.conf file. I had no problem locating this file, and simply copy/pasted it at the bottom of the text document (i assume its placement doesn't matter?). Noting again that I don't have the sapi directory -- I just assumed that I could leave the php5apache2.dll file in the php directory, and remove "sapi" from the directory path and then change the file from php4 to php5.
Doing all of this, I saved it and tried to restart Apache, however I've been recieving this cmd prompt error:
httpd.exe: Syntax error on line 486 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/php/php5apache2.dll into server: The specified module could not be found.
That's where I stand. I'm hoping that if I can get everything running properly after this that I can work through the tutorial without too much difficulty, but for now I rely on ya'lls help to push me through this. Any support, ideas, solutions is greatly appreciated.
Charlie