943,925 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 890
  • PHP RSS
Mar 18th, 2008
0

missing php folder

Expand Post »
Hello all,

A few days ago I tried to use a mail script and recieved an error:
"Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25....."

Which was wierd because I had set the smtp server to my isp's mailserver.
When I changed the smtp_port to 30, it kept saying 25 in the errormessage.

Later I had installed the mySQL database and tried to connect with phpMyAdmin, but it greeted me with the following error:
"Cannot load mysql extension. Please check your PHP configuration."

Which was again wierd because php had the extention loaded and the db was running fine.

Then i loaded up phpinfo to look at the config path for php, and this was set to f:\windows.

This was just impossible, I have both apache & php located on a seperate drive wich is L:\
And thier location is appended to windows' path. In httpd.conf, the PHPIniDir directive is thus set as L:\php5.

Yesterday I have removed the entire php5 folder, when i restarted apache it complained that it could not load the php extention, which was presumable. But When I copied php5apache2.dll and php5ts.dll to f:\windows, apache was able to start again and php seemed to work just like before.

I have performed several desktop searches on php.ini, with the option to look for hidden files & systemfolders. It turned up nothing, except for the ini files in the php archive I have on my pc (which is also located on a different drive).

I hope that someone can help me with this problem, because i am clueless.
Similar Threads
Reputation Points: 17
Solved Threads: 1
Light Poster
¤| battousai |¤ is offline Offline
37 posts
since Sep 2006
Mar 18th, 2008
0

Re: missing php folder

Is this for a local test system or are you deploying this to real world?
Reputation Points: 16
Solved Threads: 10
Junior Poster in Training
JRSofty is offline Offline
68 posts
since Dec 2007
Mar 18th, 2008
0

Re: missing php folder

I run apache only as a local webserver, shut off from the outer world. And also use it in conjunction with php as a testing environment, mainly for educational purpouses.

It is only recently that I reïnstalled windows, and only had to make some changes in the win path since the apache & php folders were still in place on a seperate drive.
Last edited by ¤| battousai |¤; Mar 18th, 2008 at 4:55 pm.
Reputation Points: 17
Solved Threads: 1
Light Poster
¤| battousai |¤ is offline Offline
37 posts
since Sep 2006
Mar 24th, 2008
0

Re: missing php folder

I have decided to format my windrive and install a fresh copy of xp. Now everything works normal again, though I'm still not sure what caused this problem. Consider this topic thus solved
Reputation Points: 17
Solved Threads: 1
Light Poster
¤| battousai |¤ is offline Offline
37 posts
since Sep 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: MySQL Connection Class not working
Next Thread in PHP Forum Timeline: Reporting with php





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC