|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation) |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hey guys,
I've been working on setting up a LAMP (Linux, Apache, MySQL and PHP) server on OpenSUSE 11.1, and I've run into a reoccurring issue with the path for the MySQL socket. I've been using the following tutorial on the OpenSUSE website to setup the server because I'm not familiar with the configuration of the server: click here. The section that I've been having particular trouble with is the Configuring mySQL section; everything previous to that point is working fine and went over without a hitch. When I start PHPMyAdmin and try to login with the username root and the password I set during installation, and I get the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)Here is the package information for the MySQL package: # zypper info mysqlAnd the package information for PHPMyAdmin: # zypper info phpmyadminThe following is the system information for my OpenSUSE system: # uname -aAnd lastly, the MySQL log under /var/log: # cat /var/log/mysqld.logThe last line in the log caught my attention, but I'm not sure what to do with it. Thank you in advance for the help!
__________________
Folding@Home Help save lives with Folding@Home |
|
|||
|
Okay, I removed the Database repository and downgraded the MySQL package, and something has changed, but I'm not sure if it's the fix. I still get the "It works!" message when I view the server on my system (http://127.0.0.1/), but when I go to http://127.0.0.1/~username, it shows the directory and the files, but does not display the files as the main page. For example, I have an index.php, but it does not become the homepage. When I click on the link for the file under the directory, it asks me to download the file, and that's the only option I can do. On the same note, when I visit http://127.0.0.1/phpMyAdmin/, I get the message "Access forbidden!" and the following information also accompanies this warning:
Access forbidden!And the package information for the MySQL package is now: # zypper info mysqlJust to test the idea, I changed the permissions of both the index.php file and the public_html directory to 777 to see if this would solve the problem. The issue still persists, even when I change the permissions to 777. I'm sort of out of ideas because I am not familiar with the setting up of a server. Thanks again for your help.
__________________
Folding@Home Help save lives with Folding@Home |
|
||||
|
As u installed LAMP, i don't think, there should be a problem.
But after installing, you have to start all services manually. Quote:
About forbidden issue. Are you sure, you are accessing the right web server path?
__________________
Visit my website: http://anl4u.com Laptop: openSUSE 11.2 | KDE4.3.1 '6' | Kernel 2.6.31.5 | Intel Mobile 4 series graphic card | Intel centrino dual core 2.0Ghz Processor | 4GB RAM | 320GB HDD |
|
|||
|
I started each of the services through YaST through System Services and set each of the services to automatically start on boot through the same window. Just to be sure, I restarted each of the services through the snippets of code that you provided and Apache2 was already running and MySQL restarted and I rebooted. Still the problem persists where I am forbidden from viewing PHPMyAdmin and the directory displays the list of files in the public_html directory. The reason I know I have the correct path to the local server (the server I'm setting up on my system now using LAMP) is because when I view http://127.0.0.1/, I get a single message of "It works!" which means that the server itself is setup. The other reason I know I have the correct path is because when I tried the same path yesterday, I was able to see the content of the index.php file displayed (the only contents of the file where <?php phpinfo(); ?> so I was able to see the table of the PHP information). So, basically, the problem still persists.
(Thank you, though )
__________________
Folding@Home Help save lives with Folding@Home |
|
||||
|
So yesterday it was working, but today got problem. Did you reinstall the server b4 the problem. If you are getting open dialog box for php files, it is in most cases, that php apache mod is not installed or maybe not configured.
What you can do is: 1- Look for php-apache-module in yast2. if above didnot work then try this. 2- Try to enable the php5 module in the Apache config. If you look in the file /etc/sysconfig/apache2 and the setting APACHE_MODULES doesn't have php5 in the list, you have not enabled PHP. Try it and let us know.
__________________
Visit my website: http://anl4u.com Laptop: openSUSE 11.2 | KDE4.3.1 '6' | Kernel 2.6.31.5 | Intel Mobile 4 series graphic card | Intel centrino dual core 2.0Ghz Processor | 4GB RAM | 320GB HDD |
|
|||
|
Well, I wanted to see if a complete reinstall would work, and it has.
I used a combination of the following two tutorials:
And it works like clockwork, now. Thank you very much for your help!
__________________
Folding@Home Help save lives with Folding@Home |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|