Simple Invoices logo
    • CommentAuthorTanner
    • CommentTimeDec 15th 2007 edited
     permalink
    PHP version: 5.1.6
    MySQL version: 5.0.22
    phpMyAdmin: 2.10.1
    Browser: Firefox 2.0.0.11
    Operating System: Ubuntu 7.10 Gutsy Gibbon
    Server Operating System: CentOS 5
    Simple Invoices: 20071116 stable

    I am installling SimpleInvoices into a virtual hosting environment. I unzipped the package and chown'd the cache/ dir to apache.apache Also chown'd include/pdf to apache.apache Likewise include/pdf/cache and include/pdf/fpdf are both chown'd to apache and 777. After doing this file level stuff I created a db for the program, logged in via phpMyAdmin and ran insert on the SimpleInvoices.sql which populated my db. I then edited the config/config to insert the db credentials.

    When I nav to the install location, which for my purposes is my domain /invoices/ I don't get a page, it's blank. The only clue is in the error logs which states "Premature end of script headers: php-script"

    Hopefully somebody can shed some light on my situation. I have been looking forward to installing this application as it appears to be exactly the solution I have been looking for, for my buddy's site.
    • CommentAuthorjustin
    • CommentTimeDec 15th 2007 edited
     permalink
    Hey Tanner

    looks like you've done everything correctly

    only thing i could find of the web re this is maybe your virtual hosting doesn't like the ./invoices/ path

    maybe move it down 1 level ie. /test/invoices/ and see if its happy

    let us know

    Cheers

    Justin
    • CommentAuthorTanner
    • CommentTimeDec 16th 2007 edited
     permalink
    When I originally installed the script I paid very close attention to the ownership and permissions of the files and folders within the invoices/ directory. Silly me, late night, I left the invoices directory owned to the wrong user. I corrected this, and am still having the blank page issue. However correcting this resulted in a bit more information in my log files. I have included the log entries in their entirety with the exception of removing my client ip address. The following are generated in the virtual host's /var/log/httpd/error_log


    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/gd.so' - /usr/lib/php4/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/imap.so' - /usr/lib/php4/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/ldap.so' - /usr/lib/php4/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/mbstring.so' - /usr/lib/php4/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/mysql.so' - /usr/lib/php4/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/mysqli.so' - /usr/lib/php4/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/pdo.so' - /usr/lib/php4/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/pdo_mysql.so' - /usr/lib/php4/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php4/pdo_sqlite.so' - /usr/lib/php4/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Notice: Use of undefined constant LOGGING - assumed 'LOGGING' in /var/www/html/invoices/include/sql_queries.php on line 3
    [Sat Dec 15 22:41:36 2007] [error] [client ] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/invoices/include/sql_queries.php on line 5


    p.s. I tried dropping the invoices directory down another level, no result. I have since moved it back to it's originally intended directory.
    • CommentAuthorTanner
    • CommentTimeDec 16th 2007 edited
     permalink
    My last post pointed out the error. Again "user error" I realized after posting the results of my error log, two things. First the "extension_dir" variable in the user's php.ini file was pointing to the wrong dir. Then it became apparent to me the php.ini file was the wrong file. Ahhh. Uncovered the source of all the issues. I initially launched this site on an older server, before I found simple invoices. That server was a php4 server, the type of control panel backup/restore that I did, carried over all the php4 configurations. This created a whole gambit of problems for the server the site is now on. I simply removed the site, and created it fresh on the new server, then reinstalled simple invoices. Now I seem to be off and running.
    • CommentAuthorjustin
    • CommentTimeDec 16th 2007 edited
     permalink
    Hey Tanner

    good to hear everything working OK now

    Cheers

    Justin