How to I find/access my php.ini include_path?
Posted by: timtastic
Posted on: 2006-10-17 07:01:00
Hi everyone I am very much a novice at anything dealing with server/unix stuff so if anyone can walk me through this I would be forever grateful.
I am trying to install PHPMailer. It says all I need to do is copy a file into my php.ini include path to install. I have no idea where to start. Can I do this with my FTP program (Transmit on OS X) or do I have to use Telnet?
Can anyone point me to a way to explore any directories below my main user directory, and more specifically find out what my php.ini include path is and how to copy files there?
Sorry for my complete lack of knowledge.
EDIT: Here's what I've found out on my own so far:
1. Enabled shell access and used SFTP to log in
2. Located my php.ini file and the includes path
3. Went on the wiki and found out how to copy the PHP 5 cgi to my own server and update it with a cron job (cron job doesn't seem to be working but that's ok for now)
4. Changed my local php.ini file's includes path from ".:/usr/local/lib/php" to ".:/home/timtastic/interficio.net/lib/php"
5. Copied everything from ".:/usr/local/lib/php" to ".:/home/timtastic/interficio.net/lib/php"
6. Copied the phpmailer class to ".:/home/timtastic/interficio.net/lib/php"
7. Created an .htaccess file containing
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
And saved it into ".:/home/timtastic/interficio.net/"
Should this work?
I started getting new PHP errors when I checked my site
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/.mahesa/timtastic/interficio.net/header.php:21) in /home/.mahesa/timtastic/interficio.net/loginform.php on line 2
So I removed my .htaccess file. Can anyone check my work and think of anything I did wrong?Edited by timtastic on 10/17/06 09:40 AM (server time).