Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th November 2012, 06:27 PM
tntrush Offline
Registered User
 
Join Date: Aug 2011
Posts: 16
linuxfirefox
Run apache as local user caused phpMyAdmin error

Hallo,

I have changed apache to run as local user, changing in the file
Code:
/etc/httpd/conf/httpd.conf
the entries:
Code:
User xxx 
Group xxx
The following address:
http://localhost/phpmyadmin/

Kept giving me the error:
Code:
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly
I fixed it by changing all the directories belonging to phpMyAdmin and the directories that belonged to the apache user or group into the user or group I have chosen for apache to run as.

These directories, namely are:
Code:
/var/lib/php/session
/var/lib/phpMyAdmin
/usr/share/phpMyAdmin
/etc/phpMyAdmin

The following command can surely help along with its possible variations:
Code:
find / -type d -group apache
which revealed the following directories:
Code:
/run/httpd
/var/cache/mod_proxy
/var/lib/dav
This solution seems to be poor, compared to more profound programming and security proof techniques such as creating a virtual host in apache, but for my local server this "local" solution, seems to be working adequately until I find time to dedicate for a more intuitive approach.

The reason I posted it, is that I could not find any close/relevant hints when I googled the problem.

Kind regards,
tntrush
Reply With Quote
  #2  
Old 9th December 2012, 12:26 PM
tntrush Offline
Registered User
 
Join Date: Aug 2011
Posts: 16
linuxfirefox
Re: Run apache as local user caused phpMyAdmin error

Just managed to configure properly a LAMP installation with virtual hosts where apache is running as local user:

http://forums.fedoraforum.org/showth...37#post1618837

Kind regards,
tntrush
Reply With Quote
Reply

Tags
apache, local, phpmyadmin, run, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User directory and 403 Forbidden error problem for apache server User101 Servers & Networking 18 2nd October 2011 05:18 AM
CIFS complains of error 20 = not a directory and doesn't use uid of local user harisund Servers & Networking 2 30th October 2006 08:59 AM
Unable to find any workgroups in your local network. This might be caused by an enabl sankarsrini Servers & Networking 0 5th June 2006 07:22 PM
Local webserver - Apache, MySQL, PHP & phpMyAdmin epalissad Servers & Networking 15 10th February 2006 03:01 AM
Apache, MySQL, phpmyadmin and php4.3.11 hampeh Servers & Networking 3 23rd April 2005 02:55 AM


Current GMT-time: 08:49 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat