phpMyFAQ install problem in XAMPP

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

phpMyFAQ install problem in XAMPP

Post by Mercury » Fri Jan 14, 2011 3:21 pm

Hi Thorsten,

I'm using XAMPP 1.7.3a & phpMyFAQ 2.5.4 & Puppy Linux 4.3.1

Problem 1: I can login the admin but some functions crash the XAMPP daemon.

Problem 2: The link to front-end at top of admin is incorrect:
http://localhost/phpmyfaq-2.5.4/

It should be:
http://localhost/phpmyfaq-2.5.4/index.php

But when I visit that page (by entering it into the browser address bar) nothing appears . I can only surmise that this is due to some un-apparent problem that occurred during install, but I have no idea what that might be.

I successfully installed Joomla! 1.6 on same PC in XAMPP, now I am trying to do the same with phpMyFAQ 2.5.4 I assume I can run both Jomla! and phpMyFAQ in XAMPP on same PC.

Thank you for your help.
Last edited by Mercury on Fri Jan 14, 2011 3:45 pm, edited 1 time in total.
www.puppylinuxforum.org

Thorsten
Posts: 14600
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Thorsten » Fri Jan 14, 2011 3:44 pm

Hi,
Problem 1: I can login the admin but some functions crash the XAMPP daemon.
which functions? Do you have an error log?
Problem 2: The link to front-end at top of admin is incorrect:

http://localhost/phpmyfaq-2.5.4/

It should be:

http://localhost/phpmyfaq-2.5.4/index.php
Just add index.php to the DirectoryIndex in your httpd.conf

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Mercury » Fri Jan 14, 2011 3:55 pm

which functions?
Sometimes visiting backup page or export page or configuration page will shutdown (crash?) the XAMPP daemon.
Do you have an error log?
Where do I find the error logs?
Just add index.php to the Directory Index in your httpd.conf
I found httpd.conf in XAMPP but it seems illogical that I would modify that. I find no such file in phpMyFAQ so no joy there either.
www.puppylinuxforum.org

Thorsten
Posts: 14600
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Thorsten » Fri Jan 14, 2011 4:08 pm

Hi,

the error log should be in /var/log/apache/error.log

The DirectoryIndex is set to index.html by default. The main link of phpMyFAQ installations is at / for SEO reasons.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Mercury » Fri Jan 14, 2011 4:29 pm

AFAIK XAMPP is the daemon that runs the server. That's what I see in my process list. Error log is in: /opt/lampp/logs
[Fri Jan 14 09:11:07 2011] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Fri Jan 14 09:11:07 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 14 09:11:07 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Fri Jan 14 09:11:07 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Jan 14 09:11:07 2011] [notice] Digest: done
[Fri Jan 14 09:11:08 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 14 09:11:08 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Fri Jan 14 09:11:08 2011] [notice] Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Jan 14 09:13:10 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/constants.php on line 27, referer: http://localhost/phpmyfaq-2.5.4/admin/index.php
[Fri Jan 14 09:13:13 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/constants.php on line 27, referer: http://localhost/phpmyfaq-2.5.4/admin/index.php
[Fri Jan 14 09:13:17 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/constants.php on line 27, referer: http://localhost/phpmyfaq-2.5.4/admin/i ... ction=user
[Fri Jan 14 09:13:20 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/constants.php on line 27, referer: http://localhost/phpmyfaq-2.5.4/admin/i ... on=content
[Fri Jan 14 09:13:24 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/constants.php on line 27, referer: http://localhost/phpmyfaq-2.5.4/admin/i ... ion=config
[Fri Jan 14 09:13:24 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/constants.php on line 27, referer: http://localhost/phpmyfaq-2.5.4/admin/i ... ion=config
[Fri Jan 14 09:13:26 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/constants.php on line 27, referer: http://localhost/phpmyfaq-2.5.4/admin/i ... ion=config
zend_mm_heap corrupted
I examined constants.php line 27 and all others but found nothing that I could guess might be a problem.
www.puppylinuxforum.org

Thorsten
Posts: 14600
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Thorsten » Fri Jan 14, 2011 5:48 pm

Hi,

then just remove line 27 in inc/constant.php. Removing this line of code has no side effects and the fatal errors should be gone.

btw, phpMyFAQ 2.5.4 is out of support.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Mercury » Fri Jan 14, 2011 7:34 pm

Thorsten wrote:then just remove line 27 in inc/constant.php. Removing this line of code has no side effects and the fatal errors should be gone.
I commented the line out and that seems to have helped. I still can't get to the front-end. If I could fix this I'd be home free.

btw, phpMyFAQ 2.5.4 is out of support.
I hear what you say but I'm between a rock and a hard spot. My source site, the site where I make database backups is at my friends web host and I can't upgrade the software nor can I ask him to do it either.

So my data is tied at the hip to 2.5.4 until such time as I can import it to a new install of 2.5.4 either on my hard drive in XAMPP or at a new web host. I did install 2.5.4 at byethost but to my misfortune they are unreliable, the Vistapanel where I would import my backups has been down for 2 weeks, along with their support site and the forum.

I would use the latest rev and import my backup to it but IIRC you told me that's not possible so I'm forced to make 2.5.4 work. If I can just make the front-end of 2.5.4 work I can import my database and then upgrade to the latest rev.
www.puppylinuxforum.org

Thorsten
Posts: 14600
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Thorsten » Fri Jan 14, 2011 10:51 pm

Hi,

the change of the DirectoryIndex is a really minor change for the Apache configuration.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Mercury » Sat Jan 15, 2011 2:20 am

I found this in: /opt/lampp/etc/httpd.conf

Code: Select all

<IfModule dir_module>
    #DirectoryIndex index.html
    # XAMPP
    DirectoryIndex index.html index.html.var index.php index.php3 index.php4
</IfModule>
Is this WTF you mean? This does not appear anywhere else on my hard drive and this is the only httpd.conf file in which I can find "DirectoryIndex".

Your answers are worthless, you don't give enough detail. I'm tired of your bullshit, either give me straight answers I can use or don't bother to reply.
www.puppylinuxforum.org

Thorsten
Posts: 14600
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Thorsten » Sat Jan 15, 2011 10:00 am

Hi,

this is the file you have to change.

Sorry, you ask basic Linux and Apache configuration stuff in the phpMyFAQ board. I do this in my currently very rare spare time for free. I even check code for you unsupported, old phpMyFAQ versions. This all takes time and this is why my answers are sometimes quite short.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Mercury » Sat Jan 15, 2011 4:53 pm

Now I know what a fly on flypaper must feel. With nothing to look forward to but that merciful day when my torment will end and I can leave you and your software in my rearview mirror. I’m not shitting you one little bit either.

About your post, you are rationalizing and your logic is flawed, here’s why:
  1. Your software is intimately connected with server software. A server is the only environment it will run on. Rhetorically speaking but building on your premise about what is or isn’t appropriate in this forum, would questions about PHP be OT here as well?
  2. If you took sufficient time to compose complete answers to questions you would utilize your time more efficiently (and lessen my suffering too).
Regarding your most recent failure to properly address my question I must ask you again, WTF are you talking about? What I posted was exactly what I found in httpd.conf I still can’t get to the front-end. What (specifically) do I do now? If there is a god (that’s saying a lot considering I’m an atheist) then you will give me a useable answer.
www.puppylinuxforum.org

Thorsten
Posts: 14600
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Thorsten » Sun Jan 16, 2011 1:35 pm

Hi,

did you already notice that you're the only one with this issue?

Your DirectoryIndex directive in the httpd.conf file is correct.

So, your current issue is that nothing happens if you point your browser to http://localhost/phpmyfaq-2.5.4/index.php, is that correct?

You don't provide any more information about this, how should I know what's the problem with your installation? I don't have a crystal ball.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Mercury » Sun Jan 16, 2011 2:54 pm

Thorsten wrote:did you already notice that you're the only one with this issue?
Issue being not getting phpMyFAQ to run correctly in XAMPP, no I hadn’t noticed that.
Your DirectoryIndex directive in the httpd.conf file is correct.

So, your current issue is that nothing happens if you point your browser to http://localhost/phpmyfaq-2.5.4/index.php, is that correct?
Yes, that is the issue.
You don't provide any more information about this, how should I know what's the problem with your installation? I don't have a crystal ball.
Are you just bitching or is there something you need to know? If so then ask and be specific about what it is you want.

Until you state a question let’s focus on getting phpMyFAQ to run in XAMPP. Once that’s done I’ll have a copy of my site on my hard drive where I can re-create it in Joomla! and you’ll never hear from me again.
www.puppylinuxforum.org

Thorsten
Posts: 14600
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Thorsten » Sun Jan 16, 2011 3:22 pm

Hi,

phpMyFAQ is running on various XAMPP installations, one of our core tester runs every release on XAMPP.

About your issue:
Do you get a white page? Do you see errors? Is the browser loading the page endlessly? Do you see any errors in the error log?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: phpMyFAQ install problem in XAMPP

Post by Mercury » Sun Jan 16, 2011 3:46 pm

Yes, I get a white page in the browser. No, I do not see errors in the browser. No, the page is not loading endlessly. Here is the error log.
Sun Jan 16 08:44:54 2011] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Sun Jan 16 08:44:54 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 16 08:44:54 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Jan 16 08:44:54 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Jan 16 08:44:54 2011] [notice] Digest: done
[Sun Jan 16 08:44:55 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 16 08:44:55 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Jan 16 08:44:55 2011] [notice] Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Jan 16 08:45:11 2011] [error] [client 127.0.0.1] PHP Fatal error: Encoding declaration pragma must be the very first statement in the script in /opt/lampp/htdocs/phpmyfaq-2.5.4/inc/Utils.php on line 28, referer: http://localhost/phpmyfaq-2.5.4/admin/index.php
Line 28 says: declare(encoding='latin1');
www.puppylinuxforum.org

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests